{* http://www.smarty.net/forums/viewtopic.php?p=66730 *} {math assign="compteur" equation='x-y' x=7 y=$smarty.foreach.count.iteration%7}