Click to See Complete Forum and Search --> : vbscript: conditional statements, does it have the "or"?


koden
October 5th, 2005, 03:21 PM
Can you "or" multiple conditions together in an If...Then...Else statement?

Eli Gassert
October 5th, 2005, 03:31 PM
I'm not exactly sure what you mean


dim x

x = 4

if x = 4 or x = 3 then
do something
elseif x = 1 or x = 2 then
do something else
else
do something else... else
end if

Pinky98
October 5th, 2005, 04:26 PM
yes.

koden
October 5th, 2005, 05:00 PM
sorry, i meant something else but found the answer

If condition Or condition Or condition then
statement
end if