Forums / Developer / delimiter modulo / Comment40348

Author Topic

Bård Farstad

Thursday 29 April 2004 4:21:49 am

Comment40348

Try this one:

<table border="1">
<tr>
{section var=item loop=10}
    <td>Cell nr {$item}
    </td>
    {delimiter modulo=1}
        {section show=$item.number|mod(2)|eq(0)}
         <td>&nbsp;</td>
        {section-else}
           </tr>
           <tr>
        {/section}
    {/delimiter}
{/section}
</tr>
</table>

--bård

Documentation: http://ez.no/doc