example.org 705 B

Operator precedence

The operator precedence of logical operators are lower than that of arithmetic operators. This means the following code works:

3 + 4 > 2 + 3

:results: val it = true : bool :end:

Boolean operators

There are the following operators:

  • andalso (short-circuit operator)
  • orelse (short-circuit operator)
  • not