Return
Description (v2.3.0)
Return to the callee
Release notes
Version 2.3.0 - Early deployment
- Improvement: Set GOSUB_RETVAL to the return value (CM-722)
Version 2.2.0 - General deployment
- Improvement: Avoid mixing Gosub and Macro applications (M25237)
Version 1.0.1 - Deprecated
- Feature: Added a return value
- Deprecated: Compatibility issue with new GoSub (M25237)
Action parameters
- Return value : This optional value will be available in a channel variable after exiting the subprocedure.
Usage
Return action version 2.2.0 or higher
must be used when pairing with GoSub action 2.2.0 or higher.
Compatibility with internal gosub (including GoSub action lower than 2.2.0) is retained but only if there is not already a stack of newer GoSub actions.
Return value
When paired with a GoSub action 2.2.0 or higher, the return value will be available in the
gosub_action_level${gosub_action_level}_retval variable. E.g at level 1 it will be gosub_action_level1_retval.
With internal gosub the GOSUB_RETVAL variable will be used.