[thelist] CFswitch doesn't.

Frank lists at frankmarion.com
Fri Aug 12 16:48:57 CDT 2005


The following code is a simple switch/case statement. Ideally, when the 
variable fuseaction  EQ anything but "contact" or "about", nothing should 
no document should be included. In this case, both are included regardless 
of the value of the variable "fuseaction".

Can anyone see what I might be missing?

<!--- Include UDF's --->
    <cfinclude template="../udf/include.cfc">
    <cfinclude template="../udf/cfparam.cfc">

<!--- Switch among various fuses --->
    <cfscript>
       cfparam ("fuseaction", "");
       switch(fuseaction) {
          case "about": {
             include("../pages/dsp_about.cfm");
          }
          case "contact": {
             include("../pages/dsp_contact.cfm");
          }
          default: {}
          break;
       }
    </cfscript>



Frank Marion     lists at frankmarion.com      Keep the signal high.





More information about the thelist mailing list