Return
![]() |
Stores a value in the ReturnValue property and then terminates the subscript triggered by Runsub in the main script. |
Supported Script Types
Properties
Property | Details |
---|---|
ReturnValue |
The variable value that is sent back to the ReturnVariable property (of the Runsub action). |
Branches
None
Tips & Tricks
- The main script then takes the value in ReturnValue and stores it in ReturnVariable property (in the Runsub action).
- Subscripts with Return should always return control back to the main script.
Phone Script Example Using Return
The example below is a subscript that uses three Return actions to values back to a main script.
Would you like to download this script?