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
: 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
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,
> 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
> 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
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
>
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
"#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
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
9 matches
Mail list logo