Product SiteDocumentation Site

5.4.5.2. Comparison Methods


>>-comparison_operator(argument)-------------------------------><

Returns 1 (true) or 0 (false), the result of performing the specified comparison operation. The receiver object and the argument are the terms compared.
The comparison operators you can use in a message are:
=
True if the terms are equal
\=, ><, <>
True if the terms are not equal (inverse of =)
>
Greater than
<
Less than
>=
Greater than or equal to
\<
Not less than
<=
Less than or equal to
\>
Not greater than
All strict comparison operations have one of the characters doubled that define the operator. The Orderable strict comparison operators produce the same results as the non-strict comparisons.
The strict comparison operators you can use in a message are:
==
True if terms are strictly equal
\==
True if the terms are NOT strictly equal (inverse of ==)
>>
Strictly greater than
<<
Strictly less than
>>=
Strictly greater than or equal to
\<<
Strictly NOT less than
<<=
Strictly less than or equal to
\>>
Strictly NOT greater than