> Is it possible to conditionally include HTML within an ADP?
Not the way you described. You have to use ns_adp_puts or
ns_adp_include within the <% ... %> block. For example:
<%
if {condition} {
ns_adp_puts {
some HTML
}
} else {
ns_adp_puts {
some different HTML
}
}
# more script again
%>
Note that "some HTML" and "some different HTML" must NOT contain any
<%...%> blocks. If you need nested <%...%> blocks, you'll need to use
multiple files and ns_adp_include.
I think someone might have once written an alternate ADP parser that
lets you do what you described. Perhaps someone else on the list knows
about it.