Contents

Roo

Operators

Roo supports the following mathematical operators:

+  # Binary addition (1 + 2) AND string concatenation.
-  # Binary subtraction (1 - 2) and unary negate (-10).
*  # Binary multiplication (1 * 2).
/  # Binary division (1 / 2).
%  # Modulo (1 % 2).
^  # Power (8^2, i.e: 16).

The following comparison operators are available: ==, <>, >=, <=, > and <:

10 == 10 # => True
3 <> 3 # => False
4 >= 2 # => True
4 <= 4 # => True
100 < 99 # => False
100 > 99 # => True