{foreach from=$data item='item'}
  • {if !empty($item.addUrl)} {else if !empty($item.addId)} {/if} {$item.label}
  • {/foreach}