Spudhead
04-30-2003, 05:16 PM
Am I going mad? I was under the impression that you couldn't do them; the INCLUDE directive gets processed at the same time as the ASP IF statement, so the file will be included regardless.
So how is this working:
<%
if infoFile = "swisscitycombinations.htm" then
%>
<!-- #include file="travel_info_tables/swiss.htm"-->
<br>
<!-- #include file="travel_info_tables/swisscitycombinations.htm"-->
<%
end if
%>
And it IS working - there's a whole bunch of statements like the one above in the file I've just found, and the wrong includes don't get included (if that makes sense :))
What's going on?
So how is this working:
<%
if infoFile = "swisscitycombinations.htm" then
%>
<!-- #include file="travel_info_tables/swiss.htm"-->
<br>
<!-- #include file="travel_info_tables/swisscitycombinations.htm"-->
<%
end if
%>
And it IS working - there's a whole bunch of statements like the one above in the file I've just found, and the wrong includes don't get included (if that makes sense :))
What's going on?