Name

CFEXIT —

Synopsis

<CFEXIT>

Aborts processing of a custom tag and returns control to the calling template or parent custom tag (in the case of nested tags). The CFEXIT tag is similar in functionality to the CFABORT tag, except it is intended for use within custom tags. If the CFEXIT tag is used outside of a custom tag, it acts exactly like the CFABORT tag.

Attribute

METHOD=" method "

The method used to exit the custom tag. Each method produces different results, depending on the location of CFEXIT within the custom tag.

The default method is ExitTag, which simply halts processing of the custom tag and returns control to the calling template. If placed within a block of code where ThisTag.ExecutionMode is Start or End, processing continues after the end tag.

ExitTemplate halts processing and returns control to the calling template. If placed within a block of code where ThisTag.ExecutionMode is Start, processing continues from the first child tag of the calling tag. If ThisTag.ExecutionMode is End, processing continues after the end tag.

Loop reexecutes a block of code in the currently executing custom tag (emulating a CFLOOP). This method can be used only when ThisTag.ExecutionMode is End. Using it in any other location results in an error.

Get Programming ColdFusion 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.