Need help with category formula

Started by hanswkraus, July 15, 2025, 02:30:34 PM

Previous topic - Next topic

hanswkraus

Hi,
I'm trying to use a category formula which tests for a varible containing a special substring. I tried:
"@Variable[{File.MD.XMP::exifEX\LensModel\LensModel\0}],contains,1.4x III]"
"@Variable[{File.MD.XMP::exifEX\LensModel\LensModel\0}],regexp,1.4x III]"
Both assembled from the online help. Both give the error: 15000 Invalid Expression.
The variable
{File.MD.XMP::exifEX\LensModel\LensModel\0}exists.
Any help appreciated, Hans

axel.hennig

#1
Haven't tested, but it looks like a small error in your formula. There is one opening "[", but two closing "]". Should be just one opening "[" and one closing "]", I guess.

Edit: There is no "contains" operator, but there is "contains-any".

hanswkraus

Thanks a lot, that was it. I tried:
"@Variable[{File.MD.XMP::exifEX\LensModel\LensModel\0},regexp,1.4x III]"and that worked.
Kind regards, Hans

Mario

I would suggest using @MetadataTag[] instead of jumping though an extra variable for better performance.