Syntax
evaluateRule(rule)
Description
Evaluates a condition based on a rule configuration that follows theleft, operator, right pattern. This function works similarly to the If Node. The left value is compared with the right value using the specified operator (for example, !=, >, includes). If the condition evaluates to true, the associated logic or transition is executed.
This function is asynchronous.
Parameters:
rule:IRule– a rule configuration object.
IRule Object Structure
IRule Object Structure
Promise<boolean> – a promise that resolves to true if the rule condition is met, otherwise false.