Skip to the content
Documentation

Re: parameters

No ratings yet

Indeed {break} breaks out of the loop and continues after the it
Both {skip} and {continue} proceed with the next element, but if a {delimiter} is defined, it will be included after {continue}, but not after {skip}. See this example:
{let list = array( 1,2,3,4,5)}
<p>
{foreach $list as $var}
{delimiter}<br />{/delimiter}
{if $var|eq(2)}{skip}{/if}
{if $var|eq(4)}{continue}{/if}
{$var}
{/foreach}
</p>
{/let}