Order of evaluation

Expressions are evaluated as follows:

  1. Pega Platform evaluates expressions from left to right.
  2. The target property reference (the destination for a value) is evaluated completely before the expression (the source of the value) is evaluated.
  3. Evaluation reflects nesting within parentheses, and operator precedence.
  4. Partial expressions combined by an operator are evaluated before the operation, with a few exceptions: For the logical functions @if(), @and(), and @or(), and the conditional operators ( &&, || and ?: ) only those operands needed to determine the true or false result are evaluated.
  5. Argument lists for functions are evaluated left to right.