xifthen

ifthen's tests, and whether a text is empty, holds another, or names a command.

Loading

\usepackage{xifthen}

A module of its own, compiled into mLaTeX: the package's commands are defined over mLaTeX's primitives.

Commands

\isempty, \isequivalentto, \isin, \isnamedefined.

Example

A document that uses it, from mLaTeX's own tests, so it compiles as written, and below it what mLaTeX sets from it in your browser:

xifthen.tex
\documentclass{article}
\usepackage{xifthen}
\begin{document}
\ifthenelse{\isempty{}}{empty}{full} \ifthenelse{\isin{b}{abc}}{in}{out}
\end{document}
OutputLoading mLaTeX in your browser
Loading mLaTeX