It will only include one. You could always take the old asp method too :)
<cfif somecondition> <cfset template="somepage.cfm"> <cfelse> <cfset template="someother.cfm"> </cfif> <cfinclude template="#template#"> -----Original Message----- From: Jim McAtee [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 3: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> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203030 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

