1 .\" $OpenBSD: if.in,v 1.8 2017/07/04 14:53:26 schwarze Exp $
2 .TH IF 1 "June 27, 2015"
4 if \- the roff conditional instruction
6 .if n One-line true condition.
7 .if t One-line false condition.
9 Next-line empty true condition.
11 Next-line empty false condition.
13 False condition with whitespace:
16 True condition with whitespace:
18 .if n \{One-line true cond\}ition with block.
19 .if t \{One-line false cond\}ition with block.
21 .if n \{ One-line true cond\}ition with block with leading blanks.
22 .if t \{ One-line false cond\}ition with block with leading blanks.
24 .if n \{Two-line true condition
25 without cont\}inuation and macros.
26 .if t \{Two-line false condition
27 without cont\}inuation and macros.
29 .if n \{Two-line true condition
30 .B without cont\}inuation but with macros.
31 .if t \{Two-line false condition
32 .B without cont\}inuation but with macros.
35 Two-line true condition
36 with continuation and macros.
37 .\}This will not be printed.
39 Two-line false condition
40 with continuation and macros.
41 .\}This will not be printed.
44 Two-line true condition with blank line.\}
46 Two-line false condition with blank line.\}
48 .if n \{Outer true condition.
50 .if n Inner one-line true condition.
51 .if t Inner one-line false condition.
53 .if n \{Inner two-line true condition
54 without continuation and macros.\}
55 .if t \{Inner two-line false condition
56 without continuation and macros.\}
58 Back to the outer true condition.\}
60 .if t \{Outer false condition.
62 .if n Inner one-line true condition.
63 .if t Inner one-line false condition.
65 .if n \{Inner two-line true condition
66 without continuation and macros.\}
67 .if t \{Inner two-line false condition
68 without continuation and macros.\}
70 Back to the outer false condition.\}
72 .if n \{Outer true condition.
73 .if t \{Inner false condition.
77 .if n \{Outer true condition.
78 .if t \{Inner false condition.
82 .if n \{Outer true condition.
83 .if n \{Inner true condition.
87 .if n \{Outer true condition.
88 .if t \{Inner false condition.
92 Backslash-backslash-brace in text:
93 .if t \{This text is not printed.\\}
96 .if t \{.B This text\\} is not printed.