If String IN ("value 1","value 2","value 3")

I need to write a conditional statement that checks if a variable is any one of the 30 words. How can I configure an IF activity to check if IN (“value 1”,“value 2”,…“value 30”) without have 30
'OR" statements. I don’t want to write, "or .contains… or .contains… 30 times…

I am too lazy to do a nested loop. Is there a quick string function I’m missing?

Found what I needed.

values = string() {“Invoice”, “Order”, “etc.”}
text = “Invoice 12345678”
isFound = values.Any(function(x) text.Contains(x))

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.