This merges the code into a single class which it compiles.

It is no different than 

If (x){ 
Code 1;
} else {
Code2;
}

Just offers you the convenience of parting the stuff into different
files.  It inserts the contents of the file as though you wrote it in a
single file, then compiles it into a class.  Only one branch of the if
(like any IF-ELSE statement) will get executed at any given request.

-Dov 

-----Original Message-----
From: Nathan Strutz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 3:54 PM
To: CF-Talk
Subject: Re: Conditional CFInclude

Or you could ask the cf-talk list....

.....oh...

Yeah, it only includes one of them, unlike classic asp.

-nathan strutz
http://www.dopefly.com/



Dawson, Michael wrote:
> The easiest way to tell:  Add a <cfmail> tag to each file.
> Second easiest: Add a <cflog> tag to each file.
> 
> Then, run 'em! 
> 
> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 14, 2005 2:47 PM
> To: CF-Talk
> Subject: Conditional CFInclude
> 
> In the following does CF include only one page on the fly, or does it 
> bring in both pages, but execute the code in only one?
> 
> <cfif somecondition>
>   <cfinclude template="somepage.cfm">
> <cfelse>
>   <cfinclude template="someother.cfm"> </cfif>
> 
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202847
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to