User Guide : Scripting : Writing Expressions : Precedence in Evaluating Expressions
Share this page             
Precedence in Evaluating Expressions
Operators in expressions are evaluated in the following order:
1. Exponentiation
2. Multiplication
3. Division
4. Addition
5. Subtraction
The only exception is that operations within parentheses such as (a+x) are evaluated first.
To use the result of one expression as a parameter or argument in another expression, "nest" expressions within expressions.
There is generally no limit (except available memory) to the depth of nesting.
See Also
Array Variables
Option Base Statement