> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/tags/exit-tag.md).

# \<exit>

## \<exit> <a href="#exit" id="exit"></a>

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

#### Attributes <a href="#attributes" id="attributes"></a>

<table><thead><tr><th width="148.33333333333331">Name</th><th width="147">Data type<select><option value="21799e14c22240f0a7b79ed21bd575cc" label="String" color="blue"></option><option value="bd8c3a6bd6c748818ec832bdaa8538fc" label="Integer" color="blue"></option><option value="5f2bba049ded4076bd7a524d4d08ab51" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>expr</td><td><span data-option="21799e14c22240f0a7b79ed21bd575cc">String</span></td><td>A return expression (e.g., “0” or “'oops!'”).</td></tr><tr><td>namelist</td><td><span data-option="21799e14c22240f0a7b79ed21bd575cc">String</span></td><td>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.</td></tr></tbody></table>

### 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

```markup
<?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>](/dev/voicexml/tags/block-tag.md), [\<catch>](/dev/voicexml/tags/catch-tag.md), [\<error>](/dev/voicexml/tags/error-tag.md), [\<foreach>](/dev/voicexml/tags/foreach-tag.md), [\<filled>](/dev/voicexml/tags/filled-tag.md), [\<help>](/dev/voicexml/tags/help-tag.md), [\<if>](/dev/voicexml/tags/if-tag.md), [\<noinput>](/dev/voicexml/tags/noinput-tag.md), [\<nomatch>](/dev/voicexml/tags/nomatch-tag.md)
