IF statement - tag with preceding @-sign

Started by Wladimir, July 23, 2022, 02:59:26 PM

Previous topic - Next topic

Wladimir

Hello, please help me with the following issue. I have searched the forum and also the documentation, but unfortunately I could not find anything on this.

I would like to assign a tag if this tag does not already exist. Basically, this is simple and works very well for me with other commands.

In this specific case, however, it is about a tag with a preceding @ sign. E.G. @wladimir

With the syntax -if '$xmp:subject!~/@wladimir/i', the message ".. files failed condition" always appears, regardless of whether the tag already exists or not. Without the @ sign, the whole thing works as it should. However, I need the @ sign because my photo server uses the @ sign to identify the uploads.

Is there any way that the @ sign can be used and found?

Thanks in advance for any tips.

Best regards, Wladimir

greybeard

@ is a special character- you have to escape it I.e. use "\@" rather than just "@"

Wladimir

Hi greybeard,

many thanks for your help! Now it works perfectly  :D

Regards, Wladimir