[thelist] [ASP] [if..then] How to use the OR operator

Ken Kogler ken.kogler at curf.edu
Sun Nov 24 16:29:00 CST 2002


> I would like it to read
> If i = q1 OR q2 Then Response.Write("Hello")
> However this syntax does not seem to work.

You need a full equation for each condition, so it would look like this:

if i = q1 or i = q2 then response.write("Hello")

HTH!
--Ken




More information about the thelist mailing list