The eq function returns the symbol TRUE if its first argument is equal in value to all its subsequent arguments, otherwise it returns the symbol FALSE. Note that eq compares types as well as values. Thus, (eq 3 3.0) is FALSE since 3 is an integer and 3.0 is a float.
Syntax
(eq <expression> <expression>+)
Example
CLIPS> (eq foo bar mumble foo) FALSE CLIPS> (eq foo foo foo foo) TRUE CLIPS> (eq 3 4) FALSE CLIPS>