Skip to the content
Documentation

Using Break

No ratings yet

There is an example of the use of break.

{foreach $objects as $index => $object}
	{$object.name}
	{if eq($index, 5)}
	     {break}
        {/if}
{/foreach}

this example will wait 6 times to break the loop.