Progress
Language Reference


GT or > Operator

Interfaces
OS
SpeedScript
All
All
Yes

Returns a TRUE value if the first of two expressions is greater than the second expression.

If characters are being compared, the character values are used to index into the current collation table so that the sort values of the characters are used in the comparison.

SYNTAX

expression { GT | > } expression 

expression

A constant, field name, variable name, or any combination of these. The expressions on either side of the GT or > must be of the same data type, although one might be integer and the other decimal.

EXAMPLE

This procedure lists all items that have a negative on-hand quantity or more than 90% of the on-hand inventory currently allocated.

r-gt.p
FOR EACH item:
  IF allocated > 0
  THEN IF (on-hand <= 0) OR
     (allocated / on-hand > .9)
  THEN DISPLAY item-num item-name on-hand allocated.
END. 

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095