Product Site

5.4.13.2. Comparison Methods

Returns .true or .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