Take this with a grain of salt.. i could be wrong:
CF server first passes over the entire template(s) to be processed, not
evaluating the logic. This is when it finds blatant syntax errors, i
believe this is also when it compiles the pcode from the cf code you have
written. Then the server "runs" the compiled pcode, evaluating and
following the path of coded logic and performing the actions as it
goes. This is when the server finds a different sort of error..
listgetat(thisList,0) would throw an error at this point, i believe.
So basically the answer is cf server looks at code twice. The first look
it would see the name=joe part, but the second time, it wouldn't.
any allaire representatives care to contradict me or elaborate on this one?
>-----Original Message-----
>From: Tony Hicks [mailto:[EMAIL PROTECTED]]
>Sent: 29 May 2001 09:14
>To: CF-Talk
>Subject: Curious about CFIF
>
>
>When you have a CFIF with a CFELSE or CFELSE IF... does cold fusion only
>read the code inside the matching condition?
>
>For instance
>
><cfif name is 'bob'>
>Name = Bob
><cfelseif name is 'joe'>
>Name = Joe
></cfif>
>
>If the name is 'bob' does CF pay any attention to the content to be
>processed if the name is joe? and if the name is joe, does it pay any
>attention to "bob's content" since it comes first...?
>
>Curious,
>Tony Hicks
>----- Original Message -----
>From: Bryan LaPlante <[EMAIL PROTECTED]>
>To: CF-Talk <[EMAIL PROTECTED]>
>Sent: Tuesday, May 29, 2001 3:12 AM
>Subject: Re: Logon Attempts
>
>
> > To resolve the problem put this code into login.cfm
> > <cfif isDefined("client.counterVar")>
> > <cfset client.counterVar = IncrementValue(client.counterVar)>
> > <cfelse>
> > <cfset client.counterVar = 1>
> > </cfif>
> >
> > You can use cfinclude or call the login.cfm as a custom tag, either way
>the
> > client scope will persist to the next page load where you can check it for
> > the appropriate action.
> >
> > ----- Original Message -----
> > From: "Jerry Staple" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Tuesday, May 29, 2001 2:35 AM
> > Subject: Logon Attempts
> >
> >
> > > Could anyone inform tell me what would be the best way to implement a
> > > logon page where the user gets 3 attempts to logon,after the 3 attempts
> > > the user is directed elsewhere.I have tried setting a variable on the
> > > application page then adding +1 when it goes to the Logon_Action.cfm but
> > > to no avail.
> > >
> > > Help
> > >
> > >
> > > Regards
> > > Jerry Staple
> > > Web Applications Developer
> > > Biznet Solutions
> > > 133 - 137 Lisburn Road
> > > Belfast
> > > BT9 7AG
> > > www.biznet-solutions.com
> > > Tel: +44 (0)28 90205652
> > > Fax: +44 (0)28 9022 3223
> > >
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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