In an if activity, how do I write a condition when I have multiple contained values


  • Is this true when multiple values are included, as shown in the figure. Thanks.
1 Like

If u want all of them than use “AND” if you want any to check any one of them, then use “Or”.

Let’s do one thing
Keep all those keywords within contains method In a list variable named list_var of type System.Collections.Generic.List(of string) with default value as New list(of string) from {“yourvalue1”,”yourvalue2”,””…”yourvalue n”}. defined in the variable panel

—Now in the same IF condition use this expression

Cheers @VolkerHuang

1 Like

as an alternate option there are also techniques possible in that you are defining a ist/array of values to check and with the help of e.g. Any methods you can avoid repeating concatenations of AND/OR blocks in the statement.

Just let us know if you are interested on such approaches and we can help you on this as well

You have to select string in the dropdown menu on top of the screen

Why is the condition equal to no result of lasi, while the one marked green in the figure has the result?