i am calling it by
<%set counter = 0%>
<%loop 8tableleftjoinloop%>
<%set counter += 0%>
<%if counter == 1%>its the first row<%endif%> <%if counter == 8tableleftjoinloop.length%>its the last row<%endif%> do whatever you want here <%endloop%>
<div id="ocwrapper" class="clear">
<%set counter = 0%>
<%loop 8tableleftjoinloop%>
<%set counter += 0%>
<%if counter == 1%>its the first row<%endif%> <%if counter == 8tableleftjoinloop.length%>its the last row<%endif%> do whatever you want here <%endloop%>
<div id="ocwrapper" class="clear">