3.15. exit

Element typeexit
Attributesexpr | namelist
Parentsblock | catch | error | filled | help | if | noinput | nomatch
ChildrenNone.
DescriptionExits the interpreter session and returns control to the interpreter context.

DTD

<!ELEMENT exit EMPTY >
<!ATTLIST exit
  expr     %expression;  #IMPLIED 
  namelist %field.names; #IMPLIED >

Language model



Attributes

expr : expression

The expression evaluated and returned to the interpreter context.

namelist : field.names

A list of variable names (and corresponding values) returned to the interpreter context.

Children

None.

Examples

Example 3-17. Exiting second time an error occurs
<?xml version="1.0" encoding="iso-8859-1"?>
<vxml version="1.0">
  <error count="1">
    <prompt>Here we catch any errors.</prompt>
    <goto next="#badfile"/>
  </error>
  <error count="2">
    <prompt>This time we will exit.</prompt>
    <exit/>
  </error>
  <form id="badfile">
    <block>
      <audio src="badfilename.au"/>
    </block>
  </form>
</vxml>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.202.41