Last reviewed: 3/23/2024 12:12:37 PM

In this article

<exit>

An <exit> element is used to exit a session.

Syntax

<exit expr="expression"
      namelist="var1 ..." />

Attributes

expr

An ECMAScript expression that is evaluated as the return value (e.g. "0", "'oops!'", or "field1").

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. If an undeclared variable is referenced in the namelist, then an error.semantic is thrown.

Children

none

Parents

<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>, and <prompt>.

Variables

none

Version Information

Supported in: VoiceXML 1.0, VoiceXML 2.0, and VoiceXML 2.1.