IF NOT equal OR NOT equal?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pheddy
    New Member
    • Dec 2008
    • 80

    IF NOT equal OR NOT equal?

    Im having some trouble doing this:

    Code:
        if not StrUser = strSaelger OR not StrUser = strKober then
    	  Response.Redirect("?pid=login&backto=casedetails&cid=" & Request.QueryString("cid"))
        end if
    Could anybody please explain the OR property right here?
  • praveenb000
    New Member
    • Aug 2008
    • 21

    #2
    Try use this instead not use <>

    Code:
    if StrUser <> strSaelger OR StrUser <> strKober then
          Response.Redirect("?pid=login&backto=casedetails&cid=" & Request.QueryString("cid"))
         end if
    I think there should be AND condition, if my guess is correct. Lets try it also.

    Comment

    Working...