Packaged on:
4/13/2010 8:37:24 AM
Number of files:
Size on disk:
239.15 kB

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: &#8211; numeric expressions such as: x=y, x<>y, x>y or x<y; &#8211; boolean switches: \iftrue 0\else 1\fi; &#8211; conditionals: \ifcsname whatsit\endcsname 0\else 1\fi; &#8211; another \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