ASP中if语句的嵌套使用

2025-01-14 06:38:19
推荐回答(2个)
回答1:

(1)if ..then
.....
(2)if .. then
.....
(2)elseif .. then
.....
(2)else
.....
(3) if ... then
.....
(3) else
(3) end if
(2)end if
.....
(1)elseif ... then
....
(4)if ... then
......
(4)elseif ...then
......
(4)else
(4)end if
.....
(1)else
......
(1)end if

这样使用,是可以试试
写IF的时候注意层次,一个IF完成的时候就应该有个end if,而不是一起结束if

回答2:

你排版很乱,看不太清楚