< TeX

Synopsis

\ifnum <integer-1><R><integer-2> <tex-code-1> [\else <tex-code-2>] \fi

Description

The \ifnum command denotes the start of an if-then-else control structure. The forms <integer-1> and <integer-2> must expand to integers while <R> must be one of the characters '=', '<', or '>'. If <integer-1><R><integer-2> expands to a true expression then <tex-code-1> is processed; otherwise it is ignored. If the \else section is included and <integer-1><R><integer-2> expands to a false expression, then <tex-code-2> is processed; otherwise it is ignored.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.