What I have heard, is that when using CFIF, the code within the CFIF is
parsed, even if the condition is not met.
However, when using <cfswitch>, only the section matching the criteria is
parsed.
(this is second hand from some notes from a presentation given by Ben Forta
- I am only 95% certain this is correct - I may have got the wrong end of
the stick...)
HTH
Dan
-----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