Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2004
    Posts
    77

    Unanswered: Use "OR" in If else condition

    This code works....

    if (request.querystring("stockname")="BA" then
    sql="update group1 set vol="&rst5("volumn")&" where ticker ='"&request.querystring("stockname")&"'"

    But when I use "OR". It didn't work

    if (request.querystring("stockname")="BA" or "LA"or "LMIA" then
    sql="update group1 set vol="&rst5("volumn")&" where ticker ='"&request.querystring("stockname")&"'"

  2. #2
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    Try...

    if request.querystring("stockname")="BA" or request.querystring("stockname")="LA" or request.querystring("stockname")="LMIA" then
    That which does not kill me postpones the inevitable.

  3. #3
    Join Date
    Jul 2004
    Posts
    94
    That should work now.It seems Seppuku has got solution for everything
    Priyanka
    Windows web hosting with ASP,.Net,PHP,Perl,MySQL support
    We help in making your dreams come true on internet!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •