.if.if
[!
]condition
anything
If condition
is true, do anything
. The presence of an Conditions
ExpressionsExpressions typically contain number register interpolations and can use any of the following operators:
Note: expressions are evaluated left to right; there is no operator precedence. Parentheses may be supplied to force a particular evaluation order. ExampleInside a macro definition, set the spacing and print the second argument. (The extra backslashes are necessary in .if t .nr PD 0.5v \" Set spacing between ms paragraphs .if !"\\$2"" \{ \" If arg 2 is non null, print it in bold \fB\\$2\fP\} |
|