Flow-control Tags

namedescription
cfabortStops the processing of a ColdFusion page at the tag location. ColdFusion returns everything that was processed before the tag. The tag is often used with conditional logic to stop processing a page when a condition occurs.
cfbreakUsed within a cfloop tag. Breaks out of a loop.
cfcaseUsed only inside the cfswitch tag body. Contains code to execute when the expression specified in the cfswitch tag has one or more specific values.
cfcontinueUsed within a cfloop tag. Returns processing to the top of a loop.
cfdefaultcaseUsed only inside the cfswitch tag body. Contains code to execute when the expression specified in the cfswitch tag does not match the value specified by a cfcase tag.
cfelseUsed as the last control block in a cfif tag block to handle any case not identified by the cfif tag or a cfelseif tag.
cfelseifUsed as a control block in a cfif tag block to handle any case not identified by the cfif tag or a cfelseif tag.
cfexecuteExecutes a ColdFusion developer-specified process on a server computer.
cfexitThis tag aborts processing of the currently executing CFML custom tag, exits the page within the currently executing CFML custom tag, or re-executes a section of code within the currently executing CFML custom tag.
cfifCreates simple and compound conditional statements in CFML. Tests an expression, variable, function return value, or string. Used, optionally, with the cfelse and cfelseif tags.
cfincludeEmbeds references to ColdFusion pages in CFML. You can embed cfinclude tags recursively. For another way to encapsulate CFML, see cfmessagebox. (A ColdFusion page was formerly sometimes called a ColdFusion template or a template.)
cflocationStops execution of the current page and opens a ColdFusion page or HTML file.
cfloopLooping is a programming technique that repeats a set of instructions or displays output repeatedly until one or more conditions are met. This tag supports the following types of loops:
cfswitchEvaluates a passed expression and passes control to the cfcase tag that matches the expression result. You can, optionally, code a cfdefaultcase tag, which receives control if there is no matching cfcase tag value.
cfthrowThrows a developer-specified exception, which can be caught with a cfcatch tag that has any of the following type attribute options: