>>but I still feel that I have too many CFIF in my code. The quantity of IF statements has nothing to do with the quality of code. Replacing them with CASE just for the sake of reducing the number of IF is completely idle. As someone pointed out, IF... ELSEIF reevaluates a conditional expression every time, though a CASE construct will evaluate ONE expression ONE time and work on values of the result. Then evrything depends on the logic of the algorithm: If you have only one expression to evaluate, work wits CASEs, if you need to evaluate a new expression for every case, you have no other choice than IF/ELSEIF.
Furthermore, never replace an IF/ELSE with a two CASE construct, it is completely useless. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192178 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

