如果没有条件在经典ASP中如何使用? [英] How to use if not condition in classic ASP?

查看:72
本文介绍了如果没有条件在经典ASP中如何使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i正在开发经典ASP中的表格。



我的要求是,我应该给出一个if条件,比如



clientid不等于774而close_date <3。



i应该在一个if语句中给出这两个条件..



有可能吗?



i尝试

<%if clientid!= 774 and close_date< 3%>



但它不起作用..



plz help asap



i am developing a form in classic ASP.

my requirement is , i should give a if condition like

clientid is not equal to 774 and close_date<3.

i should give these two conditions in one if statement..

Is there any possibility??

i tried
<% if clientid !=774 and close_date<3 %>

but it is not working..

plz help asap

推荐答案





经典的asp(即VBScript)不等于运算符是<> ;.

比较运算符(VBScript) [ ^ ]



这样的东西应该有效:

Hi,

The classic asp (i.e. VBScript) not equals operator is <>.
Comparison Operators (VBScript)[^]

Something like this should work:
<% If (clientid <> "774") And (close_date < 3) Then %>





...希望它有所帮助。



... hope it helps.


这篇关于如果没有条件在经典ASP中如何使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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