How to use boucle for in prestashop tpl

How to use boucle for in prestashop tpl:


work with prestashop 1.6  and prestashop 1.7.



You  can use select with for in tpl:






<select>
{for $foo=1 to 50}
<option value="{$foo}">{$foo}</option>
{/for}
</select>