Skip to main content

return

The return action breaks all following actions in the same action block.

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Returns after a specific condition

Goal: Creating a example of a return action.

The if action combined with the return action. If data returns the value '2', then it returns and all actions after this block will not be called.

{
"type": "if",
"params": {
"condition": {
"mode": "equal",
"right": "{{data}}",
"left": "2"
},
"then": [
{
"type": "return"
}
]
}
}

Result:

A return action has been created.