I am creating an action group for formatting my tags and has just started playing with script functions.
(Using Action "Format Value", with Field TITLE just to see the output first.
M1 - Something
I did this just to check if the if function accepts integer. (Edit: It doesn't. Even the value 1 will output 'no'.) Now to search for a string in the filename.
Search for string worked. Now, to nest them.
Now, that's weird. It should have just substituted the value of 0, but to the if function, it appears as true?
I thought that the $strstr() might be outputting a char instead an integer (if that distinction was ever in the code, I'm not sure). But I thought to try to compare the returned value if it is greater than 0.
Also tried replacing the 'A' with an 'M', the output was yes, implying that the workaround succeeded.
Since it worked with the $grtr() function, shouldn't it work with the $if() function as well? I feel like this is unintentional. Fixing the $if() to work with $strstr() will surely help a lot in reducing the confusion and the script volume.
Thanks in advance!