asma Member Aug 19, 2015 #1 how do i write this correctly? xen:foreach loop=something if looping first time do this else do this
Arty Well-known member Aug 19, 2015 #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>
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>