Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conditional Statements
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

I have a test setup on a web application which is fine unless the product selected is an "XXZ" product. Then another field appears in the web app (Number of cartons).

This field is only there when someone selects a product with "XXZ" in the name

I can't seem to figure out how to get the If else statement to work so that if "XXZ" is contained in the products list, then enter a value into the "number of cartons" from the action list, if it does not contain "XXZ" then skip this command.

Any help would be gratefully received!!

Cheers

G9
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Code:
WebList("product").GetROProperty("Selection")=XYZ

and

Code:
WebList("Cartons").exsist(0) then .......
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

Thats cool thanks - is there any way to say contains XXZ rather than is equal to?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Conditional Statement on O/P Parameter b/w QC BPT Components Ankesh 3 5,257 05-09-2012, 04:51 PM
Last Post: Shridevi.Salagare
  problem in looping statements... navyasatish 5 4,234 02-02-2012, 02:23 PM
Last Post: rajpes
  Is there a better way to manage my If statements? mv8167 0 1,900 09-03-2011, 01:14 AM
Last Post: mv8167
  Conditional run of an action janriis 1 3,027 09-22-2010, 06:25 PM
Last Post: PrabhatN
  Anyone know the difference of the 2 statements martinlam 3 4,036 08-31-2010, 02:44 PM
Last Post: QTPLearn

Forum Jump:


Users browsing this thread: 1 Guest(s)