Philip's got it. Remember when using switch statements in CFSCRIPT that once a condition is met CF will execute EVERYTHING until it encounters the end of the switch OR a break.
Bryan Love Macromedia Certified Professional Internet Application Developer / Database Analyst Telecommunication Systems Inc. [EMAIL PROTECTED] "What father would hesitate to say 'if there must be trouble let it be in my day, that my child may have peace'?" - Thomas Paine, An American Crisis -----Original Message----- From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 5:52 AM To: CF-Talk Subject: RE: Multiple case statements in SCRIPT > ColdFusion throws a wobbly on this (and the other variations I've tried > > switch (Attributes.PeriodID) { > case (1,2,3) { > ... > } > case 4 { > } > } > > Is there any way to provide multiple values? Of course switch (Attributes.PeriodID) { case "1": case "2": case "3": { do stuff; break; } case "4": { do other stuff; } } Philip Arnold Director Certified ColdFusion Developer ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists