{foreach from=$list item=i}
{$i}
{foreachelse}
nothing
{/foreach}