<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
>
Examples
<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
- Search Lucee Test Cases (good for further, detailed examples)