Comparison Operators — (!=, <,
<=, ==,
>, >=)
number != number
number < number
number <= number
number == number
number > number
number >= number
numberAny integer or real number. Non-numbers are treated as zero.
!=
t if the first
number is not equal to the second, else nil.
<
t if the first
number is less than the second, else nil.
<=
t if the first
number is less than or equal to the second,
else nil.
==
t if the first
number Is equal to the second, else nil.
>
t if the first
number is greater than the second, else nil.
>=
t if the first
number is greater than or equal to the
second, else nil.
These functions perform a numeric comparison of their arguments. In mathematical (infix) notation, the function would put the first argument on the left side of the comparison, and the second argument on the right side of the comparison.
Gamma>5 < 6;tGamma>5 > 6;nilGamma>5.00 == 5;tGamma>"hello" == string("hel","lo");tGamma>a = 5 + 1;6Gamma>a;6Gamma>a == 5;nilGamma>