Watch out, you may be on the road to becomming a programmer! The code itself can be nested. The delimiter <% is only needed when switching to the code or back to content %> So the answer is yes, but it is not real efficient to switch in and out of code so your example would look more like this: <% If firstCondition Then %>
Content for first condition
<% If secondCondition Then %>
Content that requires firstCondition AND secondCondition to be true
<% End If ' to end secondcondition
End If ' to end first condition %>
Or, if you only want content that meets both conditions you would use a logical AND
<% If firstCondition AND secondCondition Then %>
Content that requires firstCondition AND secondCondition to be true
<% End If %> |