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
CFEXITwithin 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.ExecutionModeisStartorEnd,processing continues after the end tag.ExitTemplatehalts processing and returns control to the calling template. If placed within a block of code whereThisTag.ExecutionModeisStart, processing continues from the first child tag of the calling tag. IfThisTag.ExecutionModeisEnd, processing continues after the end tag.Loopreexecutes a block of code in the currently executing custom tag (emulating aCFLOOP). This method can be used only whenThisTag.ExecutionModeisEnd. Using it in any other location results in an error.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access