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

== (reference equality operator), !==

 

 

Return type: Boolean
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 ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:55 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.