What is the difference between the two, "Is" and "Equlas"?

Hi guys! :smile:

I have a questions…
UiPath has two method “is” and “equals”.
But, I don’t know the difference between the two…

Example for,

var1 = “apple” and there are two codes.

condition1 → var1.equals(“apple”) => Can be run

condition2 → var1 is “apple” => Can ‘Not’ be run

What is the difference between the two, “Is” and “Equlas” ??

Thanks for you guys helps :smile:

1 Like

Is look if the two members are the same object
String.Equals compare the values of the two strings.

In other terms, Is compare objects and String.Equals compare values.

1 Like

Thanks, @msan !!

It really helps!!!

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