# TeX/ifnum

< TeX

## SynopsisEdit

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

## DescriptionEdit

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.