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
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
You were really close:
If a = "address1" Or b = "address2" Then
Response.Redirect("www.site.com")
End If
Use parentheses for readability ...
If (a = "address1") Or (b = "address2") Then
Response.Redirect("www.site.com")
End If