]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/cond/if.in
Messages of the -Wbase level now print STYLE:. Since this
[mandoc.git] / regress / roff / cond / if.in
1 .\" $OpenBSD: if.in,v 1.8 2017/07/04 14:53:26 schwarze Exp $
2 .TH IF 1 "June 27, 2015"
3 .SH NAME
4 if \- the roff conditional instruction
5 .SH DESCRIPTION
6 .if n One-line true condition.
7 .if t One-line false condition.
8 .if n
9 Next-line empty true condition.
10 .if t
11 Next-line empty false condition.
12 .br
13 False condition with whitespace:
14 .br
15 .if t
16 True condition with whitespace:
17 .if n
18 .if n \{One-line true cond\}ition with block.
19 .if t \{One-line false cond\}ition with block.
20 .br
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.
23 .br
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.
28 .br
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.
33 .br
34 .if n \{\
35 Two-line true condition
36 with continuation and macros.
37 .\}This will not be printed.
38 .if t \{\
39 Two-line false condition
40 with continuation and macros.
41 .\}This will not be printed.
42 .br
43 .if n \{
44 Two-line true condition with blank line.\}
45 .if t \{
46 Two-line false condition with blank line.\}
47 .br
48 .if n \{Outer true condition.
49 .br
50 .if n Inner one-line true condition.
51 .if t Inner one-line false condition.
52 .br
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.\}
57 .br
58 Back to the outer true condition.\}
59 .br
60 .if t \{Outer false condition.
61 .br
62 .if n Inner one-line true condition.
63 .if t Inner one-line false condition.
64 .br
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.\}
69 .br
70 Back to the outer false condition.\}
71 .br
72 .if n \{Outer true condition.
73 .if t \{Inner false condition.
74 inner\}middle\}end
75 After conditional.
76 .br
77 .if n \{Outer true condition.
78 .if t \{Inner false condition.
79 .\}middle\}end
80 After conditional.
81 .br
82 .if n \{Outer true condition.
83 .if n \{Inner true condition.
84 .\}middle\}end
85 After conditional.
86 .br
87 .if n \{Outer true condition.
88 .if t \{Inner false condition.
89 .B\}middle\}end
90 After conditional.
91 .br
92 Backslash-backslash-brace in text:
93 .if t \{This text is not printed.\\}
94 This neither.\}
95 On a macro line:
96 .if t \{.B This text\\} is not printed.
97 .B This\} neither.
98 End.