Operator precedence

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual Field Codes Reference Guide for version Current of Routing.

Learn about operator precedence in field codes.

Related documentation:

The Operator Precedence table lists all the operators that you can use in field-code formulas.

  • Unary operators are shown with [Unary] after their symbols.
  • The operators are listed in order of precedence, with operators of higher precedence above those of lower precedence.
  • Operators in the same row have the same precedence. If two operators of the same precedence are used in a formula, then they are computed left to right if they are binary, and right to left if they are unary.
  • You can write some operators using more than one symbol. In these cases, the alternatives are shown in parentheses.
Operator Precedence Table
Operator
+ [Unary], - [Unary]
^
*, /, Mod
+, -
< (LT), <= (LE), > (GT), >= (GE), = (==, EQ), <> (!=, NE)
Not (!) [Unary]
And (&&)
XOr
Or ({{!}}{{!}})
:
Retrieved from "https://all.docs.genesys.com/PEC-ROU/Current/FldCod/OpePre (2022-01-29 12:46:55)"