i want to color every other div in a foreach loop.
Code: Select all
{foreach from=$array item=xxx}
{if ???}
<div class="1"></div>
{else}
<div class="2"></div>
{/if}
{/foreach}
i read something about "iteration" but don't know how to use it.
right now i'm thinking i'll have to do it with php.
rtkd


