RE: conditional include files

by Klaas De Waele <klaas(at)gracegraphics.be>

 Date:  Fri, 24 Aug 2001 09:26:58 +0200
 To:  "'Mark Johnson'" <johnsonm(at)issaquah.wednet.edu>,
"'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
We've discussed this here before.  Just put the include line as you would,
seemingly conditionally including it.  I WILL always do the include job, but
since it's between an if-clause, it will only execute the code when the if
is true (or false, or whatever it is), reaching the effect you want.  Just
try it and see what happens.


- Kayjey -


> -----Oorspronkelijk bericht-----
> Van: owner-hwg-techniques(at)hwg.org
> [mailto:owner-hwg-techniques(at)hwg.org]Namens Mark Johnson
> Verzonden: donderdag 23 augustus 2001 22:21
> Aan: hwg-techniques(at)hwg.org
> Onderwerp: conditional include files
> 
> 
> Hi All:
> 
> My ASP book tells me that the ASP engine processes all 
> includes before 
> running any scripts.  This prevents the use of conditional 
> include files.
> 
> I have one template page that needs to display one of three 
> headers.  A 
> conditional include would have been the best.  My work around 
> will be to 
> add all of the content from the three headers to my template 
> page, and 
> then use an If - else if statement to choose between them.
> 
> Seems like there must be a better way.  Suggestions?
> 
> Thanks in advance!
> 
> Mark
> 
> 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.