Variables - pass by value or reference

Hi, just a quick question to understand how the variable system works in UiPath… Are all variables passed by value or are there some cases where references are used?

E.g.
String a = “Test1”
String b = a
a = “Test2”
b = ?

hi @DEATHFISH,

Here the value of b will be test1 only as it works by passed by value logic. Attaching a sample workflow for your reference.

Regards,
Shiva KathikReference.xaml (4.7 KB)