• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

<CFSWITCH>/<CFCASE>/<CFDEFAULTCASE>

<CFSWITCH>/<CFCASE>/<CFDEFAULTCASE>

Evaluates a passed expression and determines what <cfcase> matches that expression. The code within the matching <cfcase> tag is then executed. If there is no match, the code within the <cfdefaultcase> tag is executed.

Syntax

<cfswitch expression="expression"> 
  <cfcase value="value_to_match_expression" delimiters="delimiter_of_list">
    Code to be executed
  </cfcase>
  <cfdefaultcase>
    Code to be executed
  </cfdefaultcase>
</cfswitch>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint