Skip to the content
Documentation

Re: Bug in example

No ratings yet

Hello,
I think you make a little mistake in your correction : it's not while but if

{foreach $mainMenu as $menu}    {set lastlevel=$last.level}    {if and($lastlevel|ne(0), $lastlevel|gt($menu.level))}