View Single Post
  #1 (permalink)  
Old March 12th, 2008, 03:08 PM
crabjoe crabjoe is offline
Authorized User
Points: 254, Level: 5
Points: 254, Level: 5 Points: 254, Level: 5 Points: 254, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2007
Location: , , .
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default "If or" not working

When I do:

<%If x <> "a" then
response.write "HELLO"
End If%>


Or

<%If x <> "b" then
response.write "HELLO"
End If%>


It runs fine, but if I do:

<%If x <> "a" or x <> "b" then
response.write "HELLO"
End If%>


The script runs, but it runs as if I didn't put "a" or "b" into my form.

Can someone tell me why this is happening?

Thanks!

Reply With Quote