< exit >
Description
The < exit > element exits the interpreter session and returns control to the interpreter context, which determines what to do next. This element differs from the < return > element in that < exit > terminates all loaded elements while < return > returns from a < subdialog > invocation.
Syntax
<exit expr="ECMAScript_Expression" namelist="item1 item2 item3..."/>
Attributes
expr | The expr attribute is the expression to be evaluated and returned. This attribute is optional and the value is sent to the call control. |
namelist | The namelist attribute indicates variable names to be returned to interpreter context, and returns nothing by default. This attribute is optional. |
Parents
<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>
Children
None.
Extensions
None.
Limitations/Restrictions
None.
Example Code
<?xml version="1.0"?> <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"> <error> <prompt>An error has occurred.</prompt> <exit expr="'ERROR'"/> </error> <form> <block> <audio expr="directory+'badaudio.wav'"/> </block> </form> </vxml>