Click here to Skip to main content
15,035,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

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
Updated 18-Mar-15 20:55pm

1 solution


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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900