You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a break within a for-loop, that is nested within a foreach loop, I'll end up with an endless loop:
{foreach [1, 2, 3] as $var}{for $i=0 to 160}{if$i== 20}{break}{/if}{/for}{/foreach}
The documentation does not mention, if break should work within {for} or {while}-loops. But the generated code will output a break-statement, so I believe it is supported :)
If I have a break within a for-loop, that is nested within a foreach loop, I'll end up with an endless loop:
The documentation does not mention, if break should work within {for} or {while}-loops. But the generated code will output a break-statement, so I believe it is supported :)
But the break-plugin only checks for foreachLevels:
smarty_internal_compile_break.php#L46
The text was updated successfully, but these errors were encountered: