Gambas Documentation - /lang/evalorder

/lang/evalorder

# Operator Evaluation Order

Operator | Strength | Example
--- | --- | ---
`-` (negation) `NOT` | Max. | `f = - g ^ 2` is the same as `( - g ) ^ 2`
`IS` | 11 |
`&` | 9 |
`&/` | 8 |
`^` | 7 | `i = 4 ^ 2 * 3 ^ 3` is the same as `(4 ^ 2) * ( 3 ^ 3 )`
`* / \ DIV %` | 6 | `i = 4 * 2 + 3 * 3` is the same as `(4 * 2) + ( 3 * 3 )`
`+ -` | 5 |
`= <> >= <= > < LIKE BEGINS` | 4 | `i = 4 + 2 = 5 + 1` is the same as `( 4 + 2 ) = ( 5 + 1 )`
`OR XOR` | 2 | `i = a > 10 AND a < 20` is the same as `( a > 10 ) AND ( a < 20 )`

The stronger the operator, the earlier it is evaluated.

If in doubt, rather use brackets to group subexpressions.