logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::Condition::is_true - only execute fixes if all path values are the boolean true, 1 or

Name

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

See Also

       Catmandu::Fix

perl v5.40.0                                       2025-01-17             Catmandu::Fix::Condition::is_true(3pm)

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