{foreach from=$werte key=jg name=einzelwerte item=anzahl} {$jg}: {if $smarty.foreach.einzelwerte.iteration%4==0}{/if} {/foreach}