簡單的:if 5>4 then response.write "5大於4"
常規的:
if 5>4 then
response.write "5大於4"
else
response.write "5小於4"
end if
多個條件:
if 5>5 then
response.write "5大於5"
elseif 5=5 then
response.write "5等於5"
response.write "5小於5"
巢狀的話把 其中的一個 response.write 換成一個
if * then
*
即可
-------------
a=5
if a>0 then
if a=5 then
response.write "a等於5"
response.write "a不等於5"
response.write "a小於0"
簡單的:if 5>4 then response.write "5大於4"
常規的:
if 5>4 then
response.write "5大於4"
else
response.write "5小於4"
end if
多個條件:
if 5>5 then
response.write "5大於5"
elseif 5=5 then
response.write "5等於5"
else
response.write "5小於5"
end if
巢狀的話把 其中的一個 response.write 換成一個
if * then
*
else
end if
即可
-------------
a=5
if a>0 then
if a=5 then
response.write "a等於5"
else
response.write "a不等於5"
end if
else
response.write "a小於0"
end if