SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Mask to search for specific text "If text contains 'xyz' ? A : B"?

I need a mask to search for specific text in comments / grouping. Can someone help me with this? It must apply an operation if the text contains something, but is not exactly equal to something.

Eg. Comments: “Classic Rock, Live Performance, Guitar: Les Paul,”

The mask does this:
“if comments contains ‘Guitar: Les Paul’, then do this : otherwise do something else”

I only know the arithmetic operators (< > == and such). Not sure about the operator for “contains”.

Thanks!

Hi, you can use indexOf function for contains, and the >?: syntax for if.

So this simple mask outputs the title if it contains the text fred somewhere in the title otherwise it outputs the album.