用 IF 语句打印 HTML

Print HTML with IF Statement

我正在制作经典 ASP 的小 PHP 脚本,但我不知道如何在 ASP

中执行此操作
<?php if ($anyCondition == true): ?>
<p>This is a HTML paragraph, it will be printed if $anyCondition will be true</p>
<?php else: ?>
<p>This is another HTML paragraph, it will be printed if $anyCondition will be false</p>
<?php endif; ?>

可能吗?有没有类似的选择?

好久没来了。。。如果我记得的话应该是这样的:

<% If anyCondition = True Then %>

<p>This is a HTML paragraph, it will be printed if <%=anyCondition%> will be true</p>

<% Else %>

<p>This is another HTML paragraph, it will be printed if <%=anyCondition%> will be false</p>

<% End If %>