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::any_equal - Execute fixes when at least one of the path values equal a string

Description

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

Name

       Catmandu::Fix::Condition::any_equal - Execute fixes when at least one of the path values equal a string
       value

See Also

       Catmandu::Fix , Catmandu::Fix::Condition::all_equal

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

Synopsis

          # any_equal(X,Y) is true when at least one value of the array X equals 'Y'
          if any_equal('years.*','2018')
           add_field('my.funny.title','true')
          end

          # any_equal(X,Y) is false when none of the values of X equal 'Y'

See Also