What is the Operator Precedence for an expression in an Advantage Data Transformer script?

Document ID : KB000056111
Last Modified Date : 14/02/2018
Show Technical Document Details

A: Operators are processed in the following order and then left to right as they appear in your script:

1   (  )
2   ^
3   - (indicator of negative numeric value)  NOT  BNOT
4   *  /  MOD
5   +  - (subtraction)
6   >  <  >=  <=
7   =  <>
8   SHR  SHL  ROR  ROL
9   BAND
10  BXOR
11  BOR
12  AND
13  XOR
14  OR
15  = (assignment)
If you want an expression to be processed before other ones in the same statement, enclose the expression in parentheses. If you use multiple sets of parentheses in the same statement, the innermost set is processed first, followed by the next innermost, and so on until the outermost set is reached.