swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts  
operator  

== (reference equality operator), !==

 
 

Return type: Switch
Returns:       True if the records are identical, otherwise false.

Syntax

record reference == record reference


Purpose

You can use the reference equality operator == to determine if two record variables reference the same variable. This is different from comparing the values of the two records. The reference equality operator tests whether two record variables reference the same record existing at the same place in memory.

  declare type 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.%n"
     else
        output "Alpha and omega refer to different records.%n"
     done

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

      Related Concepts
   Records, comparing
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.