return
Return from execute
or exit script.
Parameters
No specific parameters. Optional JSON parameter(s) of any type will be saved to return_value
.
Variables
Set by the method:
- return_value:(out) Optional return value.
Examples
Return with optional value
- YAML
- JSON
version: 1.0.0
sections:
main:
- return: 1
{
"version": "1.0.0",
"sections": {
"main": [{ "return": "1" }]
}
}
Return with multiple values
- YAML
- JSON
version: 1.0.0
sections:
main:
- return:
- a: 1
- b: 2
{
"version": "1.0.0",
"sections": {
"main": [{ "return": { "a": 1, "b": 2 } }]
}
}
Return with no value
- YAML
- JSON
version: 1.0.0
sections:
main:
- return
{
"version": "1.0.0",
"sections": {
"main": ["return"]
}
}
Additional examples are available in the subroutines introduction.