GT or > operator

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

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 OnHand quantity or more than 90% of the OnHand inventory currently allocated:

r-gt.p

FOR EACH Item NO-LOCK:
  IF Item.Allocated > 0 THEN IF (Item.OnHand <= 0) OR
    (Item.Allocated / Item.OnHand > .9) THEN
    DISPLAY Item.ItemNum Item.ItemName Item.OnHand Item.Allocated.
END.

Notes