Thanks Patrick. Here's a code block from one of my developers that 
really got me thinking about this (variables have been changed to 
protect the innocent):

******************
<cfif IsDefined("attributes.frm_id") AND (NOT isThisVar)> 
        <cfscript>              
                if (frm_CD EQ '123')
                        new_CD = closed;
                else
                        new_CD = pending;
                        
                SW = SINGLE;
                upd_id = attributes.frm_new_id;         
        </cfscript>
        
        <cfinclude template="qry_updateCD.cfm">
</cfif> 
*******************

This used to be in an act_ file. The first reason I pulled it out into 
the switch was because it committed what I consider a major sin in 
Fusebox--fuses including other fuses. But then I got to thinking about 
just how much code you could have in your switch, vs. in includes. This 
is also an interesting case, since the cfif results in an include, which 
means, if you want to avoid fuses including other fuses, you'd HAVE to 
put it in the case (unless you came up with some other approach, like 
setting a flag and using the flag further down the case block).

PQ

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to