Link to home
Start Free TrialLog in
Avatar of eteran
eteranFlag for United States of America

asked on

Can't get this If statement to work



<%if strType =((3) or (4) or (5) or (6))  then

Response.write ("Got It")
End IF %>
ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to repeat the test for each OR so I inserted "strType = " for each number.  ASP (vbscript) does not need the statement to be in parenthesis.

Just a side note, but using parenthesis for a response.write string is not needed and I believe has been deprecated.  I am not sure about that though. :-)

Let me know if you have a question or need clarification.

bol
I'm glad that I could help.  Thank you for the grade, the points and the fun question!

bol