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

cfswitch

cfswitch

<cfswitch expression = "expression"> 
        <cfcase value = "value" delimiters = "delimiters"> 
          HTML and CFML tags 
        </cfcase> 
        additional <cfcase></cfcase> tags 
        <cfdefaultcase> 
          HTML and CFML tags 
        </cfdefaultcase> 
</cfswitch> 

Description

Often used with programming methodologies, this tag enables evaluation of an expression and then passes control to the CFCASE tag that matches the expression result. This can also encapsulate a default case, which would execute if the expression does not match.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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