I want to be able to search a variable for a number of different text strings and if any one is present then perform an action.
So from the example, I want to say if this variable contains the text "PIANO" then click at found image, but I also want it to do the same thing if the variable contains the text "SYNTH". I think it's down to my lack of knowledge of the correct syntax to separate strings! I've got this working fine for one string but can't get it working for multiple strings.
Thank you very much for the reply - I’ve just amended my KM file with:
and it’s works when the condition is “matches” but not when it’s “contains”. The problem is the track names I’m searching are likely to vary a lot. Examples might be “Dark Piano” or “Grand Piano” or “upright piano” or “fizzy synth” or “pluck synth”. So I’m looking for a way to discern keywords in the string and in my head “contains” is the right condition to be using.
Is there a reason why it might not be working?
Apologies for not being more specific about what I was trying to achieve. In any case - thank you so much “matches” does do exactly what I need, I just hadn’t run a test with “grand piano” or “any other type of piano” yet. It’s great - thank you so much!