0

作为 IF 的结果,我使用什么语法让 ASP 经典执行多行?

(我不确定我可以在 asp classic 中使用“{}”)

例如:

    If a > 10 then 

    { 
      Response.Write(" a is bigger than ten ! ")
      Response.Write(" And you've just saved the planet ! ")
    }

    end if 
4

1 回答 1

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
于 2013-10-31T13:19:03.010 回答