The ComplexCondition action executes the actions under true or false depending on the result of a complex condition. Example: (:amount >= 100 AND :approved == true) OR NOT (:country == "DE"). The expression language and on-demand parameter resolution are the same as for ExecComplexCondition. Use comparisons (==, !=, <, >, <=, >=, ===, !==), AND, OR, NOT, and parentheses. NOT has higher precedence than comparisons. Write NOT (:value == 1). After NOT, AND has higher precedence than OR. Comparisons use PHP 8 type conversion, while === and !== additionally check the type. Placeholder names are case-sensitive. Parameter values must be scalars or null. Unnecessary parameter actions are not executed. Invalid expressions and missing required values result in errors. Like Condition, the action returns the result of the last matching action in the selected branch.
Parameters
|
Type |
Name |
Description |
|---|---|---|
|
EDITOR |
expression |
Specifies the expression using placeholders, comparisons, and parentheses. |
|
KEYVALUELIST |
params |
Binds placeholders to constant values or actions that return a scalar result. |
|
ACTIONLIST |
true |
Specifies the actions to be taken when a condition is met. |
|
ACTIONLIST |
false |
Specifies the actions to be taken when a condition is not met. |
Return
|
Type |
Description |
|---|---|
|
SingleValue |
Applies the last matching individual value from the selected branch. |
|
Dataset |
Retrieves the last matching record from the selected branch. |