next up previous

12.1.17 Less Than Comparison

The < function returns the symbol TRUE if for all its arguments, argument n1 is less than 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 4 5)
TRUE
CLIPS> (< 3 5 4)
FALSE
CLIPS>


Portability Note

See portability note in section 12.1.13.


next up previous