Equality (=)

The equality operator (=), returns TRUE when two values are the same, and FALSE when they are not the same value. For example consider the following expressions:

2 = 2 => TRUE  
2 = 1 => FALSE  
"Airscript" = "Airscript" => TRUE  
"Airscript" = "airscript" => FALSE

Comparing two values of different type will always be FALSE, for example:

2 = "Airscript" => FALSE

It is important to be careful when comparing two complex values such as Objects, Lists, Dates, Times, Datetimes, and NULL. The result will only be TRUE if the two values are exactly the same rather than just similar. For example

Last updated