大家帮我看看这个判断有没有问题?

来源:百度知道 编辑:UC知道 时间:2024/05/15 02:05:33
<%
if rs("isopen")=1 then
if isnull(rs("zp_o")) or rs("zp_o")="" then
%>
'语句1 显示isopen=1 zp_o=空或无效值的内容
<%else%>
语句2 显示isopen=1 zp_o=照片名 的内容
<% end if
else if isnull("zp_o") or rs("zp_o")="" then %>
语句3 显示isopen=0 zp_o=空或无效值的内容
<% else%>
语句4 显示isopen=0 zp_o=照片名 的内容
<% end if
end if%>

1.else if isnull("zp_o") or rs("zp_o")="" then %>一句的 else if 为elseif
2.语句末尾多了一句end if

可能是没有悬赏分,大家都不回答!
不好意思我不知道.