foreach loop

asma

Member
how do i write this correctly?

xen:foreach loop=something
if looping first time
do this
else
do this
 
Judging by xen:foreach, you are talking about template syntax?
Code:
<xen:foreach loop="$something" value="$value" i="$i">
<xen:if is="{$i} == 0">
do this
<xen:else />
do this
</xen:if>
</xen:foreach>
 
Top Bottom