How to use negative conditional?
AtomicNess123 opened this issue · comments
Name of Mine commented
I saw in the manual the following example:
-if '$CreateDate ge "2006:04:02"'
What would be the negative equivalent? (if createdate IS NOT "0000:00:00").
Thanks!
StarGeekSpaceNerd commented
You would use
exiftool -if '$CreateDate ne "0000:00:00" ' <more options>
or this would work as well
exiftool -if '$CreateDate gt "0000:00:00" ' <more options>
The ne
, ge
, and gt
are Perl string relational operators.
Name of Mine commented
Wonderful, thanks!