Command in package control.


\AND*{ {val1} {val2} ... {valN} }


Outputs "true" if all expressions val1, val2, ... valN evaluate to "true", otherwise outputs "false". Note that
each expression is in a {...} block of its own, and all these blocks are inside the mandatory argument of the
command. The whitespaces around the {...} blocks are optional.

At least two expressions must be specified, otherwise an error occurs.

Note that the decision between "true" and "false" is not made when JMmtex converts the TeX file, but when the XML is
transformed to the final output format, usually (X)HTML. This allows for a dynamic decision.


\newcommand{\mystr}{foo} \newcommand{\mybar}{bar} \newcommand{\mynum}{1.0}

1: \AND*{ {\EQUAL{\mystr}{foo}} {\EQUAL[n]{\mynum}{1}} {\EQUAL{\mystr}{bar}} {\EQUAL[n]{\mynum}{1}} }

2: \AND*{ {\EQUAL{\mystr}{foo}} {\EQUAL[n]{\mynum}{1}} {\EQUAL{\mybar}{bar}} {\EQUAL[n]{\mynum}{1.00}} }

Result, as rendered by your browser

1: foofoo1.01foobar1.01

2: foofoo1.01barbar1.01.00

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)