[Documentation de SPIP] Propose : The Syntax for Loops

Article proposé
---------------

L'article "The Syntax for Loops" est proposé à la publication.
Vous êtes invité à venir le consulter et à donner votre opinion
dans le forum qui lui est attaché. Il est disponible à l'adresse :
http://www.spip.net/ecrire/articles.php3?id_article=2042

** The Syntax for Loops **
par mathieu à bidon.ca

Basic Syntax

The general syntax for a loop is the following :

<BOUCLEn(TYPE)criteria1criteria2...criteriax> HTML code + SPIP tags
</BOUCLEn>

We have seen, in the overview of loops and tags, that the HTML code + SPIP
tags of the above example repeat themselves as many times as the loop
could extract elements from the database (in other words, one time, many
times, or none).

The important line for this is :

<BOUCLEn(TYPE)criteria1criteria2...criteriax>

The BOUCLE element is an order given to Spip to indicate that we are
starting a new loop ; therefore it (...)