swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
Prerequisite Concepts      

Numeric expressions: comparing

In OmniMark, you can compare two or more numeric expressions with a standard set of operators.

The following comparison operators are available:

An unparenthesized comparison can consist of more than two parts, provided that the parts are compatible. The operator "!=" is never permitted in a multi-part comparison, and "<" or "<=" cannot be mixed with ">" or ">=".

A multi-part numeric comparison must consist of operators from either one or the other of the following sets (but not both):

For example, all of the following are valid multi-part numeric comparison tests:

  do when a = b = c = d
  ...
  done

  do when a < b < c < d
  ...
  done

  do when a >= b >= c >= d
  ...
  done

  do when a <= b = c < d
  ...
  done

  do when a = b & b = c & c = d
  ...
  done

  do when a < b & b < c & c < d
  ...
  done

  do when a >= b & b >= c & c >= d
  ...
  done

  do when a <= b & b = c & c <d
  ...
  done

All of OmniMark's comparison operators can be overloaded and used to compare user defined data types created with records.

Prerequisite Concepts
     Numeric expressions
 
   
 

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

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

Copyright © Stilo Corporation, 1988-2005.