cfelseif

Description

Used as a control block in a cfif tag block to handle any case not identified by the cfif tag or a cfelseif tag.

Category

Flow-control tags

Syntax

<cfif expression>
HTML and CFML tags <cfelseif expression>
HTML and CFML tags <cfelse>
HTML and CFML tags </cfif>

See also

cfifcfelsecfabortcfbreakcfexecutecfexitcflocationcfloopcfswitchcfthrowcftry

Usage

If the value of the expression in this tag is yes, and the values of the expressions in the containing cfif tag and preceding cfelseif tags are no, ColdFusion processes the code between this tag and a following cfelseif or cfelse tag, or the cfif end tag and then skips to the code following the cfif end tag. Otherwise, ColdFusion skips the code.
This tag must be inside a cfif tag block. It does not require an end tag. For more information and an example, see cfif.

Output

Value is 10

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online