if语句中的多个条件 [英] multiple condition in if statement

查看:140
本文介绍了if语句中的多个条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多个条件不起作用,请检查我的下面代码



<%if(不是rs(cid)=1而不是rs( bid)=1)然后%>

<%= rs(course)%>

<%end if if>



如果有人可以建议我,如果我上面的代码有什么问题



提前致谢

multiple condition is not working, plz check my below code

<%if (not rs("cid")="1" and not rs("bid")="1") then%>
<%=rs("course")%>
<%end if%>

if any one can suggest me, if i anything wrong in the above code

Thanks in advance

推荐答案

试试这个...

try this...
<%if ((rs("cid")<> 1 ) And (rs("bid")<> 1)) then%>
<%=rs("course")%>
<%end if%>



快乐编码!

:)


Happy Coding!
:)


这篇关于if语句中的多个条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆