Skip to Main Content
Programming ColdFusion MX, 2nd Edition
book

Programming ColdFusion MX, 2nd Edition

by Rob Brooks-Bilson
August 2003
Intermediate to advanced content levelIntermediate to advanced
1140 pages
68h 45m
English
O'Reilly Media, Inc.
Content preview from Programming ColdFusion MX, 2nd Edition

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 where ThisTag.ExecutionMode is Start or End, processing continues after the end tag.

ExitTemplate halts processing and returns control to the calling template. If placed within a block of code where ThisTag.ExecutionMode is Start, processing continues from the first child tag of the calling tag. If ThisTag.ExecutionMode is End, 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 when ThisTag.ExecutionMode is End. 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.
Start your free trial

You might also like

Programming ColdFusion

Programming ColdFusion

Rob Brooks-Bilson

Publisher Resources

ISBN: 0596003803Supplemental ContentErrata Page