Comparison Operators

suggest change
Operator Description
== true if the two values are equal.
!= true if the two values are not equal.
< true if the value on the left is less than the value on the right.
> true if the value on the left is greater than the value on the right.
>= true if the value on the left is greater than or equal to the value on the right.
<= true if the value on the left is less than or equal to the value on the right.
<=> 0 if the values are equal, 1 if the left value is greater, -1 if it is less. Returns nil when the values cannot be compared.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents