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.

This tag must have a body.

This tag is also supported within <cfscript>

Attribute Description
string, required

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

><!--- body ---></cfswitch>


There are currently no examples for this tag.

See also