These predicate functions perform various numeric comparisons and either succeed returning a null string or cause statement failure. Any of these functions can be redefined by the user.
EQ(a,b) succeeds if the numeric values of a and b are equal, and fails otherwise. The arguments must be convertible to numeric values.
GE(a,b) succeeds if the numeric value of a is greater than or equal to that of b, and fails otherwise. The arguments must be convertible to numeric values.
GT(a,b) succeeds if the numeric value of a is greater than that of b, and fails otherwise. The arguments must be convertible to numeric values.
INTEGER(a) succeeds if the argument a is convertible to an integer, and fails otherwise.
LE(a,b) succeeds if the numeric value of a is less than or equal to that of b, and fails otherwise. The arguments must be convertible to numeric values.
LT(a,b) succeeds if the numeric values of a is less than that of b, and fails otherwise. The arguments must be convertible to numeric values.
NE(a,b) succeeds if the numeric value of a and b are not equal, and fails otherwise. The arguments must be convertible to numeric values.
Note that the floating point NAN (Not A Number) cannot be compared so it will terminate your program with an error. Use the IDENT or DIFFER predicate functions described below when testing for a NAN.
Prior Page, Next Page, First Page of the Minnesota SNOBOL4 Reference