Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statement with multi or's
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
How do I create an If statement to check for three variables?

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.
Reply


Messages In This Thread
If statement with multi or's - by mv8167 - 06-14-2011, 02:52 AM
RE: If statement with multi or's - by rajpes - 07-05-2011, 08:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multi Select in UFT/ QTP vanga 0 3,322 02-25-2015, 07:03 PM
Last Post: vanga
  Multi-test Manager 8.2.4 compatibility rlin2012 4 4,745 07-16-2013, 11:24 AM
Last Post: vinod123
  Having trouble integrating QTP with Ant and a multi-module Adobe Flex application peachy32514 0 4,308 03-24-2012, 02:39 AM
Last Post: peachy32514
  Batch Run Vs. Multi Data Set for different test Scenario... Suba 0 2,268 03-29-2011, 06:33 PM
Last Post: Suba
  Multi-Line comment in 8.2 ver. pramod7385 1 3,591 02-25-2010, 05:04 PM
Last Post: sreekanth chilam

Forum Jump:


Users browsing this thread: 1 Guest(s)