I'm trying to loop through the rows of two tables that are side by side. The left table has the tiers and the right table has the pricing.
How can I use the value of my index "i", to obtain the corresponding row in the matching table?
<var-defname="tiers"overwrite="true"></var-def><loopitem="row"index="i"><list><xpathexpression="//table[@id='levels']/tbody//tr"><varname="subPageUrl"/></xpath></list><body><empty><case><ifcondition="${i.toInt()!=1}"><var-defname="tiers"overwrite="true"><template>${tiers.toString()} and </template></var-def></if></case><var-defname="tiers"overwrite="true"><template>${tiers.toString()+sys.xpath("/tr/td/text()",row).toString()}=${sys.xpath("//table[@id='prices']/tbody/tr[i]/td/text()",row)}</template></var-def></empty></body></loop>
Last edit: New Harvester 2012-12-28
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to loop through the rows of two tables that are side by side. The left table has the tiers and the right table has the pricing.
How can I use the value of my index "i", to obtain the corresponding row in the matching table?
Last edit: New Harvester 2012-12-28