Re: cfscript'd switch with multi-params?

2004-06-21 Thread Matt Robertson
I like that better myself.  Thx for sharing. And I noticed you weren't using braces around the case statement. Nice that I can get rid of those.  Been using 'em since I learned this. Cheers, -- --Matt Robertson-- MSB Designs, Inc. [Todays Threads] [This Message] [Subscription] [Fast Uns

RE: cfscript'd switch with multi-params?

2004-06-21 Thread Barney Boisvert
":   parameters.foo[1] = parameters.foo[1] + 1;   break; } Cheers, barneyb > -Original Message- > From: Matt Robertson [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 4:15 PM > To: CF-Talk > Subject: re: cfscript'd switch with multi-params? > >

re: cfscript'd switch with multi-params?

2004-06-21 Thread Matt Robertson
Never mind.  RTFM. switch (variables.SwitchParam) { case "1": case "3": case "3": { parameters.foo[1]=parameters.foo[1]+1; break; } } // end switch Clunky, but works. -- --Matt Robertson-- MSB Designs, Inc. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settin