我使用什么语法让ASP classic因IF而执行多行?
(我不确定我能在asp经典中使用“{}”
例如:
If a > 10 then
{
Response.Write(" a is bigger than ten ! ")
Response.Write(" And you've just saved the planet ! ")
}
end if
答案 0 :(得分:2)
删除{和}。
If condition Then
BLOCK of instructions that gets executed if condition = true
Else
BLOCK of instructions that gets executed if condition = false
End If