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

XF 1.2 <Xen:Foreach> if last?

Discussion in 'XenForo Questions and Support' started by katsulynx, Jan 7, 2014.

  1. katsulynx

    katsulynx Well-Known Member

    Is there a way to get if it is the last iteration of a Foreach-Tag or not? I'd need to set a comma after each iteration except the last one.
  2. Jeremy

    Jeremy Well-Known Member

  3. katsulynx

    katsulynx Well-Known Member

    So basically I do a
    <xen:if is="{$i} == {$count}">

    Edit: Works, thanks!
  4. Jeremy

    Jeremy Well-Known Member


Share This Page