<BOUCLE_abc(ARTICLES){id_rubrique?}>
- If there is an id_rubrique (nn) in the execution environment of the loop, then the loop will only select the data the matching the condition
id_rubrique = #ENV{id_rubrique}
- If there is no id_rubrique in the execution environment of the loop, then the criterion will be totally ignored.
It is possible to combine several conditional criteria in a single loop. For example, the following loop could be used in the context of an article as well as a section.
<BOUCLE_important(MOTS){id_groupe=12}{id_rubrique?}{id_article?}>
motclé #TITRE<br>
</BOUCLE_important>
See also
Other conditional criteria
- criterion ?operator value
- id_? : collecter et appliquer automatiquement tous les critères conditionnels applicables à la boucle présente.
Boucles sur tables conditionnelles
- The syntax of SPIP’s loops :
<BOUCLE_cond(UNETABLE?)>
Opérateurs logiques
Opérateurs