repeating region in result.php
I am using DataAssist to generate the result.php. I want to make a repeating region of the two lists. I also want the second list to show only if the recordset is even. I tried the EVEN condition for the second LI tag using SHOW REGION IF RECORDSET IS EMPTY then changed the condition
if ($totalRows_rsProducts == % 2 == 0)
it seems to work only if I do not have a repeating region for the both LI items.
The following is the HTML of the result page. I want the two lists to be in one row. Notice the second list has a border to separate both lists.
<ul id="search-width" class="items">
<li>
<a><img src=""/></a><br/>
<span> product name</span><br/>
<strong> productPrice</strong><br/>
<span> SKU </span><br/>
<span>ProductStock?></span><br/>
</li>
<li style="border-left:3px solid #cccccc;">
<a><img src=""/></a><br/>
<span> product name</span><br/>
<strong> productPrice</strong><br/>
<span> SKU </span><br/>
<span>ProductStock?></span><br/>
</li>
</ul>
I tried to make a the two LI tags to be repeating region and SHOW 10 RECORDS AT A TIME.
But I get 20 records.
Making the first LI tag a repeating region results in empty second LI.
Could you please suggest on this?