Second post today but different problem!
I'm trying to set up an action that uses a boolean function to determine if the directory name contains a specified string and if it does, to populate a field with that string.
This is what I have up to now but scripting and reg-ex etc are not my forte at all!
Action: Format value
Format string: $if(_DIRECTORY HAS "(CD)",%SOURCE% IS "CD") IS YES
All I keep getting in the SOURCE field is [ INVALID $IF SYNTAX ] .
I've been using the filter box to do this but an action would be much easier as I can tell it to do more than one thing at a time with my intervention.
Can anyone help me, i'm pulling my hair out with this!