> I shouldn't have given that specific example.  My reason for 
> bringing this whole issue up is that people say beginners' 
> code has a lot of CFIF statements.  I am using Fusebox now.  
> So it elimates a lot of CFIF statement already, but I still 
> feel that I have too many CFIF in my code.  I am just looking 
> for alternative, better, and more efficient methods to handle 
> all of those conditional statements.

You're making this more complicated than it needs to be. Everyone's code has
lots of CFIF tags. If you have simple conditional questions, use
CFIF/CFELSEIF/CFELSE. If you have an expression with many possible values,
use CFCASE. If you want to throw an exception in some condition, use
CFTRY/CFCATCH. But don't worry about which is "right", because it just
doesn't make a significant difference.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192171
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to