next up previous

12.1.15 Greater Than Comparison

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


Portability Note

See portability note in section 12.1.13.


next up previous