swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts  
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
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.