If multiple condition

Hi, I want to know if there is some way to ask everything in a conditions without repeating de variable.

How i’m doing it wigth now:


if
variable=1 or variable= 2 or variable=3


i want to know if there is some way to do it like:

variable= 1 or 2 or 3

without repeating de variable several times and knowing if it is an “AND” or an “OR” condition

thank you

2 Likes

Hi @KevinDS
Fine
–store the values 1,2,3 in a array like this buddy
in_array = {“1”,“2”,“3”}
where in_array is a array string variable
then in the if condition put like this
in_array.Contains(variable)

Cheers

1 Like