Returns control to the interpreter context that determines what to do next.
expr | A return expression (e.g., “0” or “'oops!'”). |
namelist | Variable names to be returned to interpreter context. The default is to return no variables; this means the interpreter context will receive an empty ECMAScript object. |
The interpreter context is the VoiceXML core. Plum DEV, upon reaching an <exit> tag, will simply discard the variables returned to it and disconnect. Unlike the <disconnect> tag, no event is thrown when an <exit> tag is encountered and the call is immediately terminated.
<?xml version="1.0"?> <vxml version="2.0"> <form> <block> <prompt> You will hear this text. </prompt> <exit/> <prompt> You will never hear this text. </prompt> </block> </form> </vxml>
The output of the above script would be:
Computer: You will hear this text.
None