<cfswitch>

Used with cfcase and cfdefaultcase. Evaluates 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.

Usage

<cfswitch
    expression=string
><!--- body ---></cfswitch>

This tag must have a body.

This tag is also supported within cfscript

Attributes

Attribute Description
expression
(string, required)

Any CFML expression that yields a scalar value. CFML converts integers, real numbers, Booleans, and dates to numeric values.

Examples

There are currently no examples for this tag.