这样的写法为什么是错的?

来源:百度知道 编辑:UC知道 时间:2024/05/24 06:47:48
dim a
a=0
if a>0 then
response.write("正")
else if a=0 then
response.write("0")
else
response.write("负")
end if

高手指点!!!
高手指点一下!为什么需要再加一个end if?

少了一个end if
改为:
<%
dim a
a=0
if a>0 then
response.write("正")
else if a=0 then
response.write("0")
else
response.write("负")
end if
end if
%>
=====================================================
每一个if之后都要有个end if,你看看你写了2个if,就要要两个end if

else if a=0 then
改为
elseif a=0 then