NAME
Catmandu::Fix::Condition::exists - only execute fixes if the path exists
SYNOPSIS
# uppercase the value of field 'foo' if the field 'oogly' existsif exists(oogly)upcase(foo) # foo => 'BAR'end# invertedunless exists(oogly)upcase(foo) # foo => 'bar'end
SEE ALSO
Catmandu::Fix