ASP classic - “if”中的多行

时间:2013-10-31 11:43:55

标签: asp-classic

我使用什么语法让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 

1 个答案:

答案 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