Precedence of Operators in Formula Nodes and Expression Nodes

The precedence of operators is as follows, from lowest to highest:

= op= assignment, shortcut operate and assign

op can be +, -, *, /, >>, <<, &, ^, |, %, or **.

= op= is not available in Expression Nodes.
? : conditional evaluation
|| logical or
&& logical and
| bit or
^ bit exclusive or
& bit and
!= and == inequality and equality
>, <, >=, and <= greater, less, greater or equal, and less or equal
>> and << arithmetic shift right and shift left
+ and - addition and subtraction
* and / multiplication and division
+, -, !, ~, ++, and -- unary plus, unary negation, logical not, bit complement, pre-increment, post-increment, pre-decrement, and post-decrement

++ and -- are not available in Expression Nodes.
** exponentiation
Note  In versions of LabVIEW earlier than 6.0, the ^ operator represented exponentiation. The ^ operator now represents the bitwise exclusive or (XOR) operation. The new operator for exponentiation is **, for example, x**y.

The assignment operator = is right associative (groups right to left), as is the exponentiation operator **. All other binary operators are left associative.

The numeric value of TRUE is 1, and FALSE is 0 for output. The logical value of 0 is FALSE, and any non-zero number is TRUE. The logical value of the conditional expression

<lexpr> ? <texpr>: <fexpr>

is <texpr> if the logical value of <lexpr> is TRUE and <fexpr> otherwise.