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.Loop reexecutes a block of code in the currently executing custom tag (emulating a
cfloop). This method can be used only whenThisTag.ExecutionModeisEnd. Using it in any other location results in an error.