06-14-2011, 02:52 AM
How do I create an If statement to check for three variables?
Can someone help with what the correct coding for an If statement with multiple or's.
Code:
LinkName = LinkObj.GetROProperty("text")
DocStyles = ("Fax","View","Zip")
DocStyles = "Fax","View","Zip"
If LinkName <> DocStyles Then
If LinkName <> "Fax" or LinkName <> "View" or LinkName <>"Zip" Then
If LinkName <> ("Fax" or "View" or "Zip") Then
If LinkName <> ("Fax","View","Zip") Then
Can someone help with what the correct coding for an If statement with multiple or's.