return
Return from execute or exit script.
return
The return value: a string, number, object, or array. Booleans and null can appear inside an object or array, or result
from resolving a variable reference, but aren’t accepted directly as the whole return value.
Properties
No specific parameters.
SWML variables and expressions are resolved before the value is stored: in a string value, and in every string inside an
object or array. Object keys aren’t resolved. A string that is a single variable reference, such as '${call.from}', keeps that
variable’s JSON type; a reference combined with other text produces a string.
After resolution, the value can nest objects and arrays at most 62 levels deep. A deeper value isn’t stored, return_value
keeps its previous value if it had one, and the section still ends. Because execute
clears return_value before running its destination, an earlier result isn’t returned in that case.
Variables
Set by the method:
- return_value:(out) Optional return value.
Examples
Return with optional value
Return with multiple values
Return an object built from variables
using the on_return parameter
Return with no value
Additional examples are available in the introduction.