Railo 4.2 Reference
Choose a tag:

Tag <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.

Body

This tag must have a body.

Example

	<cfswitch
expression="string">
</cfswitch>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
expression string Yes Any CFML expression that yields a scalar value. CFML converts integers, real numbers,
Booleans, and dates to numeric values.