next up previous

12.1.14 Comparing Numbers for Inequality

The <> function returns the symbol TRUE if its first argument is not equal in value to all its subsequent arguments, 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 3.0)
FALSE
CLIPS> (<> 4 4.1)
TRUE
CLIPS>


Portability Note

See portability note in section 12.1.13.


next up previous