OPERATORS

Greater than (>)

Return true when the left operand sorts after the right operand.

Syntax

Signature
left > right

Description

Return true when the left operand sorts after the right operand.

Example

Greater_than.prg
PROCEDURE Main()

   LOCAL nMinutes
   LOCAL nLimit := 15

   FOR EACH nMinutes IN { 12, 15, 19 }
      IF nMinutes > nLimit
         QOut( nMinutes, "Late delivery" )
      ELSE
         QOut( nMinutes, "On time" )
      ENDIF
   NEXT

   RETURN

Output