Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use Or in If Statement question
#1
Solved: 10 Years, 9 Months ago
When I try:
Code:
If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or "STATEMENTS - PMA"
Then

I get a run error of:
Type mismatch: '[string: "STATEMENTS - PMA"]'
Function file: O:\QTP_Tests\NightlyRegressionTesting\Tests\LibraryImageAccessFunctions.qfl
Line (639): "If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or "STATEMENTS - PMA" Then".

Must I only use:
Code:
If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or ZipDialogName  = "STATEMENTS - PMA" Then

thx for your ideas.
Reply
#2
Solved: 10 Years, 9 Months ago
Yes you are right, should be used as
If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or ZipDialogName = "STATEMENTS - PMA"

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)