No, you can't do that. Complex expressions aren't allowed in <cfcase>. You'd have to create a series of if/then statements. Hal Helms == See www.ColdFusionTraining.com for info on "Best Practices with ColdFusion & Fusebox" training, Jan 22-25 == -----Original Message----- From: Bud [mailto:[EMAIL PROTECTED]] Sent: Friday, December 08, 2000 4:31 PM To: CF-Talk Subject: Complex expressions w/ cfswitch Howdy all. OK, easy enough to do a simple expression using cfswitch. <cfswitch expression="#action#"> <cfcase value = "someaction"> Some Code </cfcase> <cfcase value = "someotheraction"> Some Other Code </cfcase> <cfdefaultcase> Default Code </cfdefaultcase> </cfswitch> Which is basically if action is "this" do this, if action is "that" do that. What about doing a more complex expression. Like if action is "this" and isdefined('that')? Is there a way to use complex expressions with cfswitch? Examples? Thanks! :-D -- Bud Schneehagen - Tropical Web Creations _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] http://www.twcreations.com/ 954.721.3452 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists