{include file="includes/header.html"}
Category loop example
Conditional example #1
{ifloop rel="catloop2"} Hey ! Loop catloop2 is not empty:Loop catloop2 is empty
{/elseloop}Conditional example #2
{ifloop rel="catloop3"} Loop catloop3 is not empty:Loop catloop3 is empty
{/elseloop} {elseloop rel="catloop2"}... but catloop2 is still empty :-)
{/elseloop} {ifloop rel="catloop1"}... and catloop1 is still NOT empty :-)
{/ifloop}Traditional for loop
{for $index=5 to 12 step 1} Compteur = {$index}Loops also work with #
{loop type="category" name="catloop1"} #TITLE : {#DESCRIPTION|upper} #NOTATAG