Skip to main content
Version: 4.62

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: Return after a specific condition is fullfilled

Show ExampleHide Example

The return action is combined with the if action. If the condition right equals left returns true, then the return action is executed and all actions after this block will not be called.

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