next up previous contents
Next: Programming Up: Operators Previous: Calculate

Comparison and Logical Operators

Function O-Mode M-Mode Prec Order
Less x < y x < y 6 left-right
Less or equal x <= y x <= y 6 left-right
Larger x > y x > y 6 left-right
Larger or equal x >= y x >= y 6 left-right
Equal x == y x == y 6 left-right
Not equal x ~= y x ~= y 6 left-right
And x & y x & y 7 left-right
Or x | y x | y 9 left-right
Not ~x ~x 8 left-right

next up previous contents
Next: Programming Up: Operators Previous: Calculate
Helmut Dersch
2009-03-15