<exit>

<exit>

Returns control to the interpreter context that determines what to do next.

Attributes

Name
Data type
Description

expr

String

A return expression (e.g., “0” or “'oops!'”).

namelist

String

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.

Notes

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.

Example

<?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.

Child Tags

None

Parent Tags

<block>, <catch>, <error>, <foreach>, <filled>, <help>, <if>, <noinput>, <nomatch>

Last updated