• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

foreach loop

Arty

Well-known member
#2
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>