Basculer le menu
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

Modèle:If empty

De ProleWiki
Révision datée du 15 juin 2024 à 11:51 par CriticalResist (discussion | contributions) (Page créée avec « <noinclude>This template takes a series of arguments and returns the first non-empty argument. Example: <nowiki>{{If empty|a|b|c|d}}</nowiki> In this situation, if a is not empty, it would return a, if it is empty, it would return b, unless it was also empty, then it would return c, and so on.</noinclude>{{<includeonly>safesubst:</includeonly>#invoke:If empty|main}} »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

This template takes a series of arguments and returns the first non-empty argument.

Example:

{{If empty|a|b|c|d}}

In this situation, if a is not empty, it would return a, if it is empty, it would return b, unless it was also empty, then it would return c, and so on.