RE: CFCASE and variables ...

2005-03-15 Thread S . Isaac Dealey
heh... yep, I've been there. > Yep, my brain shortcut his post and I thought he was > referring to the > expression attribute of cfswitch. I thought he was > confused, turns out it > was me! s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures

RE: CFCASE and variables ...

2005-03-15 Thread Paul
: CFCASE and variables ... Nope -- that's invalid. The value attribute of the cfcase tag doesn't accept variables. Which is why he posted originally. > "#variable#" should work. > -Original Message- > From: Charles Heizer [mailto:[EMAIL PROTECTED] > Sent: Tuesd

RE: CFCASE and variables ...

2005-03-15 Thread S . Isaac Dealey
12:40 PM > To: CF-Talk > Subject: CFCASE and variables ... > Hello, > Can someone please explain to me why cfcase can not use a > variable as it's > value, I would expect this to be a simple and useful > feature. And does > anyone know a way around this? > Thanks,

Re: CFCASE and variables ...

2005-03-15 Thread S . Isaac Dealey
> In CF, based on some testing I did a while back, the > performance of the case construct versus the conditional > one was close enough to ignore the difference, so you're > not going to be taking a performance > hit by choosing one over the other. Although that's not why I use switch-case constr

Re: CFCASE and variables ...

2005-03-15 Thread S . Isaac Dealey
> Hello, > Can someone please explain to me why cfcase can not use a > variable as it's > value, I would expect this to be a simple and useful > feature. And does > anyone know a way around this? > Thanks, > - Charles The subject has been beaten to death in previous threads on this list... it's a

Re: CFCASE and variables ...

2005-03-15 Thread Charles Heizer
expressions, not variables. On 3/15/05 11:46 AM, "Paul" <[EMAIL PROTECTED]> wrote: > "#variable#" should work. > > -Original Message- > From: Charles Heizer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 15, 2005 12:40 PM >

Re: CFCASE and variables ...

2005-03-15 Thread Barney Boisvert
Because "that's the way it always is". The case construct is optimized for checking a single variable against a set of constants. If you're checking a variable against other variables, you are prevented from performing those compiler-level optimizations. If you want to compare variable values, y

RE: CFCASE and variables ...

2005-03-15 Thread Paul
"#variable#" should work. -Original Message- From: Charles Heizer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 12:40 PM To: CF-Talk Subject: CFCASE and variables ... Hello, Can someone please explain to me why cfcase can not use a variable as it's value, I wo

CFCASE and variables ...

2005-03-15 Thread Charles Heizer
Hello, Can someone please explain to me why cfcase can not use a variable as it's value, I would expect this to be a simple and useful feature. And does anyone know a way around this? Thanks, - Charles ~| Logware (www.logware.u