Brackets ( )
Works out what is inside first.
Syntax
(expression)
Result
The value inside.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
2+3*4 |
14 |
(2+3)*4 |
20 |
Notes
Without brackets, - and ! in front of a value come first; then *, / and %; then + and -; then comparisons;
then == != ~=; then && || ^ (together, left to right); and ? : last.
See also: + - * / %.