==, !==

operator

Return type:
Switch
Returns:
true if the records are identical, false otherwise.
Syntax
record reference == record reference
    


Purpose

You can use the reference equality operator == to determine if two record expressions reference the same record instance. This is different from comparing the values of the two records.

  declare record point
     field integer x
     field integer y
   
  
  process
     local point alpha
     local point omega
     
     set omega to alpha
     
     do when omega == alpha
        output "alpha and omega refer to the same record instance.%n"
  
     else
        output "alpha and omega refer to different record instances.%n"
     done

The negative form of the reference equality operator, !==, reverses the meaning of the test.

Related Concepts