Call If

Description

The Call If component is a component that, when conditions are met, executes another action and then continues with the original action.

This allows for the reuse of previously created actions.

action-callif

Conditions to trigger another action can be specified with expressions. If the condition evaluates to true, another action is executed; if false, no other action is performed, but the process of the action continues.

Variables with prefixes tp. / tv. / ap. / av. / cp. / cv. can be used as comparators in the conditional expressions.

Component Properties

Property NameDescription
Action IDThe ID of the action to execute
ConditionThe condition under which to execute the action
Example ConditionsExpression Examples
Targeting Payload, when Payload is numericcv.Payload > 10
When Payload is a stringcv.Payload =~ "^abc"
When Payload is a JSON arraycv.Payload[1] > 10
When Payload is a JSON Objectcv.Payload.key1 == "abc"

Action ID

The name of the action, excluding the file extension (.acs), is the Action ID.