contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
Numeric comparison tests: multi-part
Prerequisite Concepts      

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

Prerequisite Concepts
     Arithmetic and comparison operators
   Numeric expressions
   Precedence of numeric operators
 
   
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:00:50 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.