Nope. There's an else if (), as in else and then a new if statement.
<CFSCRIPT>
if(variable eq 2)
do this
else
if (variable eq 3)
do that
else
final else
</CFSCRIPT>
Note the tabbing that's used here. If you don't use proper tabbing and/or
brackets ({}) then the chances of you messing up your code is high.
> Which reminds me. What isn't there an ElseIf in CFSCRIPT?
>
> > Switch/Case outside of cfscript is much faster. I think I remember
reading
> > somewhere in the CFDocs that switch/case was only added to CFSCRIPT for
the
> > sake of consistency between the tagged and scripted functionality.
> >
> > - Chris
> >
> > <!----------------------------------------------------------->
> > Christopher Cortes |Coming Q3 2001:
> > Consultant |
> > Stonebridge Technologies, Inc. | 'Optimizing ColdFusion'
> > Putting Technology To Work | By
> > Visit us at www.sbti.com | Christopher Cortes
> > Ofc: 713.985.6244 cel: 281.235.6100 | www.osborne.com
> > <-----------------------------------------------------------!>
> >
> >
> > -----Original Message-----
> > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, April 29, 2001 12:35 PM
> > To: CF-Talk
> > Subject: Re: Benefits of <CFSWITCH> vs. <CFSCRIPT> with SWITCH
> >
> >
> > A case statement in CFSCRIPT will only allow a single value to look at
while
> > the CFCASE will allow multiple. As for speed, I haven't tested it but
will
> > do so today.
> >
> >
> > > If I have a <CFSWITCH>/<CFCASE> block, would I gain anything by
converting
> > > to a <CFSCRIPT> block with SWITCH/CASE statements?
> > >
> > > Erika
> > >
> > > "Friendship is never an accident. It is always the result of high
> > > intentions, sincere effort, intelligent direction and skillful
execution.
> > It
> > > represents the wise choice of many alternatives." - unknown
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists