saker.build Documentation TaskDoc JavaDoc Packages
  1. saker.build
  2. Scripting language
  3. Language reference
  4. Operators
  5. Parentheses

Parentheses

Parentheses work the same way as in any common programming language. They enclose an expression providing precedence over other operators.

Parentheses can be applied on any expression occurring in the language. (Except the if-else statement as it is not an expression, but a control statement.)

# results in 4 * 4 = 16
(1 + 3) * 4
# results in 1 + 12 = 13
1 + 3 * 4