next up previous

12.1.18 Less Than or Equal Comparison

The <= function returns the symbol TRUE if for all its arguments, argument n1 is less than or equal to argument n, otherwise it returns the symbol FALSE. Note that <= compares only numeric values and will convert integers to floats when necessary for comparison.

Syntax

(<= <numeric-expression> <numeric-expression>+)

Example

CLIPS> (<= 3 5 5)
TRUE
CLIPS> (<= 5 3 5)
FALSE
CLIPS>


Portability Note

See portability note in section 12.1.13.


next up previous