---
name: "Catmandu::Fix::Condition::is_true"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::Condition::is_true"
---

# Catmandu::Fix::Condition::is\_true(3pm)

only execute fixes if all path values are the boolean true, 1 or "true"

## NAME

Catmandu::Fix::Condition::is\_true - only execute fixes if all path values are the boolean true, 1 or "true"

## SYNOPSIS

```
    if is_true(data.*.has_error)
        ...
    end
    # strict only matches a real bool, not 1 or "1" or "true"
    if is_true(data.*.has_error, strict: 1)
        ...
    end
```

## SEE ALSO

Catmandu::Fix
