I want to compare multiple values in if condition

I want to compare multiple values in if condition.

Like below

IF IN (‘ABC’,‘BNM’,‘POI’)
THEN
STATEMENT
END IF

Basically (‘ABC’,‘BNM’,‘POI’) this contains multiple values comparison

varible.contains(“ABC”) and varible.contains(“BMM”)

try like this u can use .contains or .eqal

1 Like

Hi @boopathi_raja If their is only one condition its best to use switch activity and u can add multiple case in it.

1 Like

Hi,

Please see the below tutorial. It shows how you can compare multiple values in an if condition. I hope it is helpful.

Link

I hope it is helpful.

BR

You can add values comparison to a list then use Contains method of List to check if a value is exist.