**SPIP**
# Article validated
The article "**The CONDITION loop**
(https://www.spip.net/en_article6565.html)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.
* * *
## The CONDITION loop
Sunday 24 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
Associated with the `{si ...}`
(https://www.spip.net/ecrire/?exec=article&id_article=6566), criterion, the
CONDITION loop is used to create tests.
It is useful when the bracket syntax is not usable, for example when other
loops need to be nested in the results of a test.
For example:
<BOUCLE_test
(CONDITION)
{si
#ENV
{test}
|>
{5}
}
>
true
<BOUCLE_a
(ARTICLES)
{...}
>
</BOUCLE_a>
<BOUCLE_b
(BREVES)
{...}
>
</BOUCLE_b>
<BOUCLE_c
(AUTEURS)
{...}
>
</BOUCLE_c>
</BOUCLE_test>
false
<BOUCLE_x
(RUBRIQUES)
{...}
>
</BOUCLE_x>
<BOUCLE_y
(DOCUMENTS)
{...}
>
</BOUCLE_y>
<//B_test>
## See also
Criterion *si ...*
(https://www.spip.net/ecrire/?exec=article&id_article=6566)
— Sent by SPIP (https://www.spip.net/)
