Click to See Complete Forum and Search --> : VBScript Conditional Statements


Brachole
04-10-2009, 07:37 PM
I'm trying to write this VBScript conditional that includes an "AND" and "OR" but it doesn't work...am I missing something?

IF ((Session("sessName") <> "Full Name") OR ( Session("sessName") <> "")) AND (Session("sessEmail") <> "Email Address") OR ((Session("sessEmail") <> "")) AND ((Session("sessComments") <> "Questions or Comments") OR (Session("sessComments") <> "Questions or Comments")) THEN

Kuriyama
04-11-2009, 12:41 PM
Can you spit up some debugging code to make sure that nothing strange is happening with your session variables?

Brachole
04-13-2009, 09:06 AM
My session variables are working. In fact, the script works if I only use the AND operator alone. As soon as I add the OR operator, it doesn't work...just wanted to make sure the syntax was fine!