return
Return from the current section. Inside a subroutine called via
execute, control returns to the caller and the value is
accessible as return_value in the caller’s context. In main, return stops execution entirely
(its value is discarded).
To return without a value, use return: null.
Properties
return
The value to return. Accepts any type. Use null to return no value.
Variables
When called from a section invoked via execute,
return provides the variable below to the caller’s context once execution resumes. When
called from main, return stops execution immediately and no variable is set anywhere.
return_value
The value supplied to return. Available in the caller’s context after the execute step
that invoked this section completes. String values are expanded for %{...} placeholders
before storage; objects and arrays are stored as-is.