Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Parentheses

&pagelevel(4)&pagelevel

Parentheses ( ) can serve to divide up an expression, thus making its evaluation clearer. They can also be used to control evaluation.

If an expression contains parentheses, the subexpressions in the parentheses are evaluated first, according to how the parentheses are nested. Afterwards, the operators outside the parentheses are processed.

The limit on the number of pairs of parentheses is dependent on the complexity of the expression. However, up to 50 are always accepted.

Example

The example below shows how expression evaluation can be controlled by the use of parentheses:

(A + B) / C > (D + C) MOD E AND ((A + D) * E < (D * C) OR (F // G) > H)