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::exists - only execute fixes if the path exists

Name

       Catmandu::Fix::Condition::exists - only execute fixes if the path exists

See Also

       Catmandu::Fix

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

Synopsis

          # uppercase the value of field 'foo' if the field 'oogly' exists
          if exists(oogly)
            upcase(foo) # foo => 'BAR'
          end
          # inverted
          unless exists(oogly)
            upcase(foo) # foo => 'bar'
          end

See Also