Supported operators

As Expr uses BQL, all the standard BQL expression syntax is available. For more information on BQL expressions, see the NiagaraAX Developer Guide.

Operators are processed by their precedence, that is “order of operation”, from first (1) to last (6).

  1. !, not, -

    logical not, numeric negation

  2. * , /

    multiplication, division

  3. +, -

    addition, subtraction

  4. =, !=, >, >=, < <=, like

    comparisons

  5. and, or

    logical operators

  6. as

    result operator

You may use parentheses to override the normal precedence as illustrated in the following examples.

Figure 1. A change in precedence


A change in precedence

In the first expression, multiplication precedes addition. Adding the parentheses changes the precedence so that addition precedes multiplication.