IF Condition

Really simple one guys,

If condition

Var.Tostring = “input1” this works but how do I get it to match 3 separate things, it will never match to all 3 it only needs to match 1 of them, I know I can nest the IF statements but would prefer just one.

I have tried var.ToString = “Input1” or “Input2” but to no avail

Hi,

Almost there just need to declear each comparision:
var.Tostring = “Input1” ORELSE var.Tostring = “Input2” etc…

Thanks,

Tim

Hi Jersey - You can try using switch activity.
Following is the URL for more information : https://studio.uipath.com/docs/the-switch-activity

if your code is same for all 3 match you can use single if condition :slight_smile:

2 Likes