Article publié
--------------
L'article "Loops: The Syntax" a été validé par George.
** Loops: The Syntax **
par mathieu à bidon.ca le mardi 9 septembre 2003
Basic Syntax
The basic syntax for a loop is thus :
<BOUCLEn(TYPE)criterion1criterion2...criterionx> HTML code + SPIP's tags
</BOUCLEn>
We saw, in the overview of loops and tags, that the HTML code + SPIP's
tags of the above example are repeated as many times as the loop could
extract items from the database (in other words, one time, several times,
or none).
The main instructon here is :
<BOUCLEn(TYPE)criterion1criterion2...criterionx>
The BOUCLE element is an instruction given to Spip to define a new loop ;
therefore it cannot be modified ; in other (...)