OPERATORS

Less than or equal (<=)

Return true when the left operand sorts before or compares equal to the right operand.

Syntax

Signature
left <= right

Description

Return true when the left operand sorts before or compares equal to the right operand.

Example

Less_than_or_equal.prg
PROCEDURE Main()

   LOCAL nWeight
   LOCAL nLimit := 20

   FOR EACH nWeight IN { 18, 20, 21 }
      IF nWeight <= nLimit
         QOut( nWeight, "Standard parcel" )
      ELSE
         QOut( nWeight, "Oversize parcel" )
      ENDIF
   NEXT

   RETURN

Output