return
The return action breaks all following actions in the same action block.
Inherited
From Base Action
Base Action
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type 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.