Quick Minor Help

How do I write the following below condition inside the If activity without using the word CurrentItem constantly.

What I’m doing currently
CurrentItem = 1 or CurrentItem = 2

For instance like If CurrentItem = (1,2) OR
For instance like If CurrentItem = [1,2] OR
For instance like If CurrentItem = {1,2}

What is the correct syntax format to do so. Coz none of what I tried is correct. Thx.

@private_matter ,

Maybe try in the below way :

{1,2}.Any(Function(x)x.Equals(CurrentItem))

Assuming that you are also dealing with the list of values.

1 Like

Yes It works well. Thx :grin:

1 Like

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