{foreach from=$data item='item'} {$item.label} {if !empty($item.number)} {$item.number} {/if} {/foreach}