New Harvester - 2012-12-28

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-def name="tiers" overwrite="true"></var-def>
  <loop item="row" index="i">
    <list>
      <xpath expression="//table[@id='levels']/tbody//tr"><var name="subPageUrl"/></xpath>
    </list>
    <body>
      <empty>
        <case>  
          <if condition="${i.toInt()!=1}">  
            <var-def name="tiers" overwrite="true">    
              <template>${tiers.toString()} and </template>
            </var-def>
          </if>
        </case>      
        <var-def name="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