How to use If activity

Hello, I want to use if activity to separate the sequence. Picture 1 has 4 matches and picture 2 has 2 matches, so if there are matches 2 & 3, then I want to add an activity, else I add some other activity. I have a problem with the structuring the “Condition”, how should I type?

“Airports” is the variable name that I assign when using regex to extract out the words in capital.


^Picture 1


^Picture 2

[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

have a look at the usage of myMatchVar.Value for accessing the matched string

Airports.Contains(Airports(2)) AND Airports.Contains(Airports(3))

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