1 .TH IF 1 "June 27, 2015" OpenBSD
3 if \- the roff conditional instruction
5 .if n One-line true condition.
6 .if t One-line false condition.
8 Next-line empty true condition.
10 Next-line empty false condition.
12 False condition with whitespace:
15 True condition with whitespace:
17 .if n \{One-line true cond\}ition with block.
18 .if t \{One-line false cond\}ition with block.
20 .if n \{ One-line true cond\}ition with block with leading blanks.
21 .if t \{ One-line false cond\}ition with block with leading blanks.
23 .if n \{Two-line true condition
24 without cont\}inuation and macros.
25 .if t \{Two-line false condition
26 without cont\}inuation and macros.
28 .if n \{Two-line true condition
29 .B without cont\}inuation but with macros.
30 .if t \{Two-line false condition
31 .B without cont\}inuation but with macros.
34 Two-line true condition
35 with continuation and macros.
36 .\}This will not be printed.
38 Two-line false condition
39 with continuation and macros.
40 .\}This will not be printed.
43 Two-line true condition with blank line.\}
45 Two-line false condition with blank line.\}
47 .if n \{Outer true condition.
49 .if n Inner one-line true condition.
50 .if t Inner one-line false condition.
52 .if n \{Inner two-line true condition
53 without continuation and macros.\}
54 .if t \{Inner two-line false condition
55 without continuation and macros.\}
57 Back to the outer true condition.\}
59 .if t \{Outer false condition.
61 .if n Inner one-line true condition.
62 .if t Inner one-line false condition.
64 .if n \{Inner two-line true condition
65 without continuation and macros.\}
66 .if t \{Inner two-line false condition
67 without continuation and macros.\}
69 Back to the outer false condition.\}
71 .if n \{Outer true condition.
72 .if t \{Inner false condition.
76 .if n \{Outer true condition.
77 .if t \{Inner false condition.
81 .if n \{Outer true condition.
82 .if n \{Inner true condition.
86 .if n \{Outer true condition.
87 .if t \{Inner false condition.
91 Backslash-backslash-brace in text:
92 .if t \{This text is not printed.\\}
95 .if t \{.B This text\\} is not printed.