asp if判断的问题 高手进

来源:百度知道 编辑:UC知道 时间:2024/09/22 14:32:16
我的 语句中 有 or 又有 and 好像 AND的条件 判断 高手帮忙一下
.........
rCount = rs1.recordcount

i = 0
i = i + 1
if i < rCount or (day(date())>=8 and Session("session_adminright")<> 25) then '时间判断可以写在这里%>
<td valign="top"><a href="show_bb.asp?bbgl_bm_id=<%=bbgl_bm_id%>&qyxx_id=<%=qyxx_id%>&tableid=<%=tableid%>&baobiaoym=<%=baobiaoym%>" target="_blank"><%=baobiaoym%></a></td>
<%
end if
........
上面打了少了个字 我是说 我AND后面跟的判断 好像没有 运行 也就是说 我AND 后面 的语句加不加 结果是一样的 现在就是让 大大们 看看 怎么改 AND后面的判断语句才有用 谢谢先

if i < rCount or (day(date())>=8 and Session("session_adminright")<> 25 then

改成下面的样子,试试
rCount = rs1.recordcount

i = 0
if i < rCount or (day(date())>=8 and Session("session_adminright")<> 25) then '时间判断可以写在这里%>
<td valign="top"><a href="show_bb.asp?bbgl_bm_id=<%=bbgl_bm_id%>&qyxx_id=<%=qyxx_id%>&tableid=<%=tableid%>&baobiaoym=<%=baobiaoym%>" target="_blank"><%=baobiaoym%></a></td>
<%
i = i + 1
end if
........