edoc automate Guide
v26.11.6 v26.9.8 German English
Auto Light Dark
Auto Light Dark
v26.11.6 v26.9.8 German English

logic\ExecComplexCondition - edoc automate

The ExecComplexCondition action combines comparisons using AND, OR, and NOT. Example: (:amount > = 100 AND :approved == true) OR NOT (:country == "DE"). The values are specified in params or determined by actions. You must include the placeholders in the expression for the values to be used.

Each required value is evaluated once per check. Subsequent checks use the current values. Placeholder names are case-sensitive. Strings are enclosed in single or double quotes. The following operators are supported: ==, !=, <, >, <=, >=, as well as the type-safe comparisons === and !==. Comparisons use PHP 8 type conversion. Example: 0 == "0" is true, 0 === "0" is false. NOT has higher precedence than comparisons, followed by AND before OR. Therefore, write NOT (:value == 1). Numbers, strings, true, false, and null are allowed. Functions, calculations, and object access are not allowed. Missing required values and invalid expressions result in an error message.

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.

Return

Type

Description

SingleValue

Returns the result as a Boolean value.

Last updated: