<cfcase>

Handle one case of a <cfswitch>

This tag must have a body.

This tag is also supported within <cfscript>

Attribute Description
delimiters
string, optional

Specifies the character that separates multiple entries in a list of values.

value
string, required

One or more constant values that cfswitch compares to the specified expression case-insensitive comparison.

If a value matches the expression, cfswitch executes the code between the cfcase start and end tags.

Separate multiple values with a comma or other delimiter, as specified in the delimiters parameter.

Duplicate value attributes are not allowed and causes a runtime error.

<cfcase
    [delimiters=string]
    value=string
><!--- body ---></cfcase>

Examples

```lucee+trycf this is from case 2 this is from case 2 this is from default part

<cfscript>
//Script example
    switch(1){
       case 1:
         result = 1;
         break;
       case 0:
         result = 0;
         break;
       default:
         result = "defaultCase";
    }
    writeDump(result);
</cfscript>

```

See also