AZ logo

Package boolexpr:
A boolean expression evaluator and a switch command.

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:

\boolexpr may be used with \ifcase:

The \switch command (which is also expandable) has the form:

Getting it

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.

More

Documentation on CTAN
Readme
Package documentation
Documentation off CTAN -none known-
Maintainers
Florent Chervet
Version 3.14
License LaTeX Project Public License
Related packages -none recorded-
Keywords
macro programming
Characterizations
primary:
Programming in TeX > Programming structures

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.