tags:

views:

117

answers:

2

Does vbscript support or operator?

I want to do following code in vbscript, please help me

if a="address1" or b = "address2"
    then Response.Redirect("www.site.com")
endif
+2  A: 

You were really close:

If a = "address1" Or b = "address2" Then 
    Response.Redirect("www.site.com") 
End If
Andrew Hare
A: 

Use parentheses for readability ...

If (a = "address1") Or (b = "address2") Then 
    Response.Redirect("www.site.com") 
End If
hmcclungiii