Testing mutiple condition

(imported topic written by SystemAdmin)

Hi everybody.

Is it possible to test multiple condition in a way like this ?

if (string in ("a" or "b" or "c" or "d")) then "found" else "not found"

rather than “frustrating way”

if (string = "a") then "found" else
if (string = "b") then "found" else
if (string = "c") then "found" else
if (string = "d") then "found" else "not found"

???

(imported comment written by SystemAdmin)

You can try something like …

exists elements of intersection of (set of (“Frank”); set of (“Tom”;“Paul”;“Frank”;“George”))

(imported comment written by SystemAdmin)

I knew I had to “fight” with

set of

Tim … you are the one !

Thanks :wink: