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::all_equal - Execute fixes when all path values equal a string value

Description

       This fix is meant as an simple alternative to Catmandu::Fix::Condition::all_match.  No regular
       expressions are involved. String are compared using the regular operator 'eq'.

Name

       Catmandu::Fix::Condition::all_equal - Execute fixes when all path values equal a string value

See Also

       Catmandu::Fix , Catmandu::Fix::Condition::any_equal

perl v5.40.0                                       2025-01-17              Catmandu::Fix:...tion::all_equal(3pm)

Synopsis

          # all_equal(X,Y) is true when value of X == 'Y'
          if all_equal('year','2018')
           add_field('my.funny.title','true')
          end

          # all_equal(X,Y) is false when value of X == 'Ya'

See Also