自动化系统的仪表:ASP代码哪错了?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 08:25:50
<%if home2="" and home3="" then%>
<%=rs("home1")%>
<%else%>
<%if home1="" and home3="" then%>
<%=rs("home2")%>
<%else%>
<%=rs("home3")%>
<%end if%>
<%end if%>

说真的,我真是看不清楚你这段代码到底是做出什么功能,不只是IF语句错放,而且语句不完整.我看你还是加个变量吧,最后输出那个变量

好像没有错
也许是有的机子不支持了
你换一下机看看

提示错误是什么?

<%if home2="" and home3="" then%>
<%=rs("home1")%>
<%elseif home1="" and home3="" then%>
<%=rs("home2")%>
<%else%>
<%=rs("home3")%>
<%end if%>
这样试试看看

if...then
....
else
......
end if
语句不可以像你那样来兼套使用的,
if...then
....
elseif...then...
......
end if