> Did you mean?
> 
> <%
> 
> if(true)
>  include("page1.html")
> else
>   `
> end if
> 
> include("page2.html")
> 
> %>

Nope, that wasn't a typo in my previous email. I was concerned that include 
behaved like a cut and paste. So if I cut and paste the contents of the 
included file, I would achieve the same result as an include. But since I 
wanted to include an html file (with no a4d code), I was afraid it might not be 
handled properly.

After reading the responses to my email, I went back and tested it by cutting 
and pasting. When a4d performs an include, it must internally change the 
processed file from this:

<%
if(true)
 include("some_file.html")
 
else
 include("other_file.html")

end if
%>



to this:

<%
if(true)
%>

` contents of some_file.html

<% else %>

` contents of other_file.html

<%
end if
%>

Which of course, makes perfect sense.

Warmest regards,

Rick Hazey
bitworx, inc.
---------------------------
[EMAIL PROTECTED]
http://www.bitworx.com
---------------------------
11924 Sunray Ave. Suite B
Baton Rouge, LA 70816
(225) 293-1333 Voice
(225) 293-1330 FAX
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to