• New in : SPIP 1.8

The |<{value} filter returns "true" if the results of the tag to which it is applied is strictly lesser than "value".

{value} can be numeric [1] (5, 18.2, 84,...), or alphanumeric [2] (abc, a word,...)

For example:

[(#TOTAL_BOUCLE) [(#TOTAL_BOUCLE|<{2}|?{'article', 'articles'})] in this section.]

to correctly display the singular or plural noun.

See also the
|!=a and
|==a filters.


[1If a decimal number is passed as the value, it must use a decimal point and not a comma as in several European languages

[2The check takes account of uppercase and lowercase characters

Author Mark Published : Updated : 23/07/23

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