OPERATORS

Less than (<)

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

Syntax

Signature
left < right

Description

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

Example

Less_than.prg
PROCEDURE Main()

   LOCAL nStock
   LOCAL nLimit := 5

   FOR EACH nStock IN { 0, 4, 5, 8 }
      IF nStock < nLimit
         QOut( nStock, "Reorder" )
      ELSE
         QOut( nStock, "Stock sufficient" )
      ENDIF
   NEXT

   RETURN

Output