The \boolexpr macro evaluates boolean expressions in a
purely expandable way.
\boolexpr{ A \OR B \AND C } expands to 0 if the logical
expression is TRUE. A, B, C may be:
x=y, x<>y, x>y
or x<y;\iftrue 0\else 1\fi;\ifcsname whatsit\endcsname 0\else 1\fi;\boolexpr: \boolexpr{ D \OR E \AND F }:
\boolexpr may be used with \ifcase:
\ifcase\boolexpr{ A \OR B \AND C }
What to do if true
\else
What to do if false
\fi
The \switch command (which is also expandable) has the
form:
\switch
\case{<boolean expression>} ...
\case{<boolean expression>} ...
...
\otherwise ...
\endswitch
If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)
| Distribution | Package name |
|---|---|
| MiKTeX | boolexpr |
| TeX Live | boolexpr |
You can also visit boolexpr's CTAN directory to browse the source or download the material for installation by hand.
| Documentation on CTAN |
|
||
| Documentation off CTAN | -none known- | ||
| Maintainers |
|
||
| Version | 3.14 | ||
| License | LaTeX Project Public License | ||
| Related packages | -none recorded- | ||
| Keywords |
|
||
| Characterizations |
You can suggest changes to the keywords and characterizations and the maintainer information.
You can get information about any package.