> WHAT I WOULD LIKE TO BE ABLE TO DO:
> <cfinclude template="holiday.cfm">
> <td class="holiday">#ThisDay#</td>
> <cfelse>
> <td><a href="">#ThisDay#</td>
> <cfif>
> thx
> // gilbert midonnet
You can't include a portion of any other tag, whether it's a <cfif> or
something else... so you couldn't have this structure here in your code, or
anything like
<cfswitch>
<cfinclude>
</cfcase>
</cfswtch>
etc...
You do have some leeway with cftry wherein instances of <cfthrow> and
<cfcatch> can exist within <cfinclude> files, but the <cftry></cftry> both
have to be on the same page, as do the <cfcatch></cfcatch> tags.
In the case above the best you would have to resort to something like this:
( there is no </cfinclude> end tag -- it's for the purpose of illustration
to show what's in the file...
<cfinclude template="myfile.cfm">
<cfset myvariable = yesnoformat( ... conditional logic from previous cfif
.. )>
</cfinclude>
<cfif myvariable>
...
<cfelse>
...
</cfif>
hth
S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists