SPIP

[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [vi] [zh] Espace de traduction

Download

|xou

June 2010

All the versions of this article:


The|xou filter [1] (since SPIP 2.0) is used to check the existence of only one single element out of 2 possibles.

Wikipedia offers a complete definition of the Exclusive OR.

Examples:
[(#CHAPO|xou{#PS}) Either there is a stand-first, or a post-scriptum, but never both]
[(#CHAPO|xou{#PS}|non) There can be neither stand-first nor post-scriptum, or there can be both at the same time]

See also the |et and |ou filters.

Footnotes

[1This can also be written as |xor


Show the template of this page Site powered by SPIP | Translation area | Private area