View Full Version : How to say "or" in asp script...
08-23-2005, 10:51 PM
I know it's a really silly question, but I can't find out how to say "or" like this:
If MyValue = "value1" AND MyName = "Bob" OR "James" Then
Any comments would be appreciated. Thanks.
08-23-2005, 11:14 PM
Just try to keep in mind that the format is
if <<condition>> then
So to add conditions you do like so...
if <<condition>> OR <<condition>> AND <<condition>> then
and so on...
So you'd have to do...
If MyValue = "value1" AND (MyName = "Bob" OR MyName = "James") Then
Notice the bracketing... You'll have to bracket if you want to do what you were just sayin...
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.