RETURN
![]() |
Stores a value in the ReturnValue property and then terminates the subscript triggered by RUNSUB in the main script. |
Supported Script Types
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Generic | Chat | Phone | Voicemail | Work Item |
Properties
- ReturnValue
- The variable value that is sent back to the ReturnVariable property (of the RUNSUB action).
Branches
None
Tips and 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 the main script.
To see the main script, refer to SUBSCRIPT, where you can see both scripts working together.
Would you like to download this script?