GNU TeXmacsUser manualReferenceAboutEnglish·Deutsch·中文
Boolean operations

<or|expr-1|\(\cdots\)|expr-n>

<and|expr-1|\(\cdots\)|expr-n>

Returns the result of the boolean or/and on the expressions expr-1 until expr-n. For instance, <or|false|<equal|1|1>|false> yields true.

The evaluation is lazy, from left to right: or returns the value of the first argument which does not evaluate to false (or false if there is none), and and returns false as soon as an argument evaluates to false, and the value of the last argument otherwise. At least two arguments are required.

<xor|expr-1|expr-2>

Returns the exclusive or of two expressions expr-1 and expr-2, i.e. <xor|true|true> yields false.

<not|expr>

Returns the negation of expr: true if expr evaluates to false, and false otherwise.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".