> 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>
That will only try to bring in and execute the page for the include that gets hit. The other will be ignored completely. You can test this by the following... <cfif 1 eq 1> <cfinclude template="file_that_exists.cfm"> <cfelse> <cfinclude template="file_not_exist.cfm"> </cfif> The file that exists will be included and executed, while the file that does not exist will be ignored. There will be no error because CF won't even try to find it to include. -Justin Scott ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:202845 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

