Operators

how to use equal, not equal and OR operaters in uipath?

2 Likes

HI

for equal
variablename.Equals(variablename2)
or
variablename = variablename2

for not equal
Not variablename.Equals(variablename2)
or
variablename <> variablename2

for OR Operator
variablename.Equals(variablename2) OR Not variablename.Equals(variablename2)

hope this would helpyou
Cheers @Buddika_Abeykoon

@Buddika_Abeykoon For not equal to use this <> you can use directly or for or statement

Which activity i want use?

1 Like

we can usually use these expressions in a IF condition as the output of these expressions is a boolean datatype

moreover we can use this in assign activity if the TO variable is of type boolean

Cheers @Buddika_Abeykoon

1 Like

thank you all…

2 Likes

@Buddika_Abeykoon Use if activity

Cheers @Buddika_Abeykoon