if ul foreach from item li li foreach ul if

1
2
3
4
5
6
7
8
{if $A}
<ul>
{foreach from=$A item=B}
<li>{$B}</li>
{/foreach}
</ul>
{/if}