{criterion ?}

A conditional criterion (criteria associated with the ? logical operator) will only be taken into account by the loop if the data required by that criterion exist in the execution environment of that loop.

<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

Boucles sur tables conditionnelles

Opérateurs logiques

Opérateurs

-  Note that {id_rubrique ?} is equivalent to {id_rubrique?}.

Author Mark Published : Updated : 16/12/22

Translations : català, English, Español, français, Nederlands