<cfexit>
Used to: Abort the processing of the currently executing CFML custom tag, exit the template within the currently executing CFML custom tag and reexecute a section of code within the currently executing CFML custom tag
This tag cannot have a body.
This tag is also supported within <cfscript>
<cfexit
method=string
>
| Attribute | Description |
|---|---|
method
string, optional
|
edit
Allowed values:
|
Examples
edit<cfloop from=1 to="10" index="i">
<cfdump var="#i#" />
<cfif i Eq 5>
<cfexit>
</cfif>
</cfloop>
See also
- <cfabort>
- <cfinclude>
- <cfreturn>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)