CFEXIT

CFEXIT can be used to:

  • Abort the processing of the currently executing CFML custom tag.

  • Exit the template within the currently executing CFML custom tag.

  • Reexecute a section of code within the currently executing CFML custom tag.

Syntax

<CFEXIT METHOD="method">
METHOD

Optional. Specifies one of the following:

  • ExitTag (default) — Aborts processing of the currently executing CFML custom tag.

  • ExitTemplate — Exits the template of the currently executing CFML custom tag.

  • Loop — Reexecutes the body of the currently executing CFML custom tag.

Usage

If a CFEXIT tag is encountered outside the context of a custom tag, for example in the base page or an included page, the tag acts exactly like CFABORT. CFEXIT can help simplify error checking and ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.