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 whereThisTag.ExecutionMode
isStart
orEnd,
processing continues after the end tag.ExitTemplate
halts processing and returns control to the calling template. If placed within a block of code whereThisTag.ExecutionMode
isStart
, processing continues from the first child tag of the calling tag. IfThisTag.ExecutionMode
isEnd
, processing continues after the end tag.Loop
reexecutes a block of code in the currently executing custom tag (emulating aCFLOOP
). This method can be used only whenThisTag.ExecutionMode
isEnd
. 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.