I am looping through a nested array in smarty, and each element has a status of 'active' or 'inactive'. How can I detect the last element in the array that is set to active?
example code:
{foreach from=$steps item=step name=step}
{if $step.status == 'active' && ????? }
{/if}
{/foreach}