Order of evaluation
Expressions are evaluated as follows:
- Pega Platform evaluates expressions from left to right.
- The target property reference (the destination for a value) is evaluated completely before the expression (the source of the value) is evaluated.
- Evaluation reflects nesting within parentheses, and operator precedence.
-
@if()
,@and()
, and@or()
, and the conditional operators (&&
,||
and?:
) only those operands needed to determine the true or false result are evaluated. - Argument lists for functions are evaluated left to right.