Used as the last control block in a cfif
tag block to handle any case not identified by the cfif
tag or a cfelseif
tag.
<cfif expression>
HTML and CFML tags
<cfelseif expression>
HTML and CFML tags
<cfelse>
HTML and CFML tags
</cfif>
cfif
,
cfelseif
,
cfabort
,
cfbreak
,
cfexecute
,
cfexit
,
cflocation
,
cfloop
,
cfswitch
,
cfthrow
,
cftry
If the values of the expressions in the containing cfif
tag and all cfelseif
tags are false, ColdFusion processes the code between this tag and the cfif
end tag. This tag must be inside a cfif
tag block. It does not require an end tag.
For more information and an example, see cfif.