Iterates through the specified list of items. A foreachelse tag can also be used and will be evaluated if the source list is null or empty. Note - in the initial release the source must be of type IList - in later releases this was changed to IEnumerable.

{foreach from=$numbers item='number'}
    <li>{$number}</li>
{/foreach}

Last edited Feb 16, 2010 at 7:50 AM by JacoPretorius, version 1

Comments

No comments yet.