This is a multi-part message in MIME format.
--=_NextPart_000_0015_01C00DBB.414D3C00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am having a problem with switch statement in a cfscript block. It is =
always executing the last case, no
You need a "break" command at the end of each case
- Original Message -
From: "FWA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 24, 2000 9:05 AM
Subject: Switch Statement in CFSCRIPT
> This is
You need break after each case:
case 0:
{
}
break;
case 1:
{
}
break;
etc...
RE:
I am having a problem with switch statement in a cfscript block. It is =
always executing the last case, no matter what happens. I have tried =
several different things and none of them seem to work. I
case "0",
who knows if that will help.
Robert Everland III
Web Developer
Dixon Ticonderoga
-Original Message-
From: FWA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 11:06 AM
To: [EMAIL PROTECTED]
Subject: Switch Statement in CFSCRIPT
This is a multi-part message
= "webbox";
o = url.webreq;
page = "warn";
file = "editboxd.cfm5";
break;
}
}
HTH!
Sharon
-Original Message-----
From: FWA <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, August 25, 2000
Hi
Could anyone tell me if its possible to define multiple case statements
In a switch block in cfscript..
So a cfscript version of :
Thanks
Kola
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subs
- Original Message -
> Could anyone tell me if its possible to define multiple case statements
> In a switch block in cfscript..
---
I don't think this is possible. If you get an error when you try it, that
would confirm things :-) I think it might be to do with C
case values in switch statement in cfscript
Hi
Could anyone tell me if its possible to define multiple case statements
In a switch block in cfscript..
So a cfscript version of :
Thanks
Kola
~|
Archives: http
-Original Message-
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 9:11 AM
To: CF-Talk
Subject: multiple case values in switch statement in cfscript
Hi
Could anyone tell me if its possible to define multiple case statements
In a switch block in cfscript
Don't think it's possible to specify a list like that with cfscript. You would need
five different case statements.
Not sure whether you can do this in cfmx.
Nick Han
>>> [EMAIL PROTECTED] 10/10/02 09:11AM >>>
Hi
Could anyone tell me if its possible to define multiple case statements
In a sw
Kola Oyedeji wrote:
>
> So a cfscript version of :
>
>
switch(name) {
case "Xander":
case "Oz":
case "Angel":
{
male=true;
break;
}
case "Tara":
case "Willow":
case "Cordelia":
{
male=false;
break;
rom: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 9:11 AM
To: CF-Talk
Subject: multiple case values in switch statement in cfscript
Hi
Could anyone tell me if its possible to define multiple case st
#x27;t work, then it wont work.
-Original Message-
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:13 AM
To: CF-Talk
Subject: RE: multiple case values in switch statement in cfscript
-Original Message-
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sen
> Hi
> Could anyone tell me if its possible to define multiple case statements
> In a switch block in cfscript..
> So a cfscript version of :
>
Yes it is.
CFScript uses standard C/C++/Java/JavaScript syntax for switch/case, so the
cfscript equivalent looks like this:
switch (exp) {
> - Original Message -
>> Could anyone tell me if its possible to define multiple case statements
>> In a switch block in cfscript..
> ---
> I don't think this is possible. If you get an error when you try it, that
> would confirm things :-) I think it might be to
> Sent: Thursday, October 10, 2002 11:11 AM
> To: CF-Talk
> Subject: multiple case values in switch statement in cfscript
> Hi
> Could anyone tell me if its possible to define multiple case statements
> In a switch block in cfscript..
> So
: Thursday, October 10, 2002 9:56 AM
To: CF-Talk
Subject: Re: multiple case values in switch statement in cfscript
- Original Message -
> Could anyone tell me if its possible to define multiple case
> statements In a switch block in cfscript..
---
I don't
Sir Isaac - I bow to your wisdom. I have never seen it in that context.
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 12:59 PM
To: CF-Talk
Subject: Re: multiple case values in switch statement in cfscript
> Hi
> Could anyon
Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 12:59 PM
> To: CF-Talk
> Subject: Re: multiple case values in switch statement in
> cfscript
>> Hi
>> Could anyone tell me if its possible to define multiple
>> case statements
>> In a switch b
19 matches
Mail list logo