summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/roff/cond/if.in
blob: c65a1dcb1cca69499b9e09c09f156e7bb71b0a26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.TH IF 1 "May 30, 2012" OpenBSD
.SH NAME
if \- the roff conditional instruction
.SH DESCRIPTION
.if n One-line true condition.
.if t One-line false condition.
.if n
Next-line empty true condition.
.if t
Next-line empty false condition.
.br
False condition with whitespace:
.if t 
True condition with whitespace:
.if n 
.if n \{One-line true condition\} with block.
.if t \{One-line false condition\} with block.
.br
.if n \{Two-line true condition
without continuation\} and macros.
.if t \{Two-line false condition
without continuation\} and macros.
.br
.if n \{Two-line true condition
.B without continuation\} but with macros.
.if t \{Two-line false condition
.B without continuation\} but with macros.
.br
.if n \{\
Two-line true condition
with continuation and macros.
.\}
.if t \{\
Two-line false condition
with continuation and macros.
.\}
.br
.if n \{
Two-line true condition with blank line.\}
.if t \{
Two-line false condition with blank line.\}
.br
.if n \{Outer true condition.
.br
.if n Inner one-line true condition.
.if t Inner one-line false condition.
.br
.if n \{Inner two-line true condition
without continuation and macros.\}
.if t \{Inner two-line false condition
without continuation and macros.\}
.br
Back to the outer true condition.\}
.br
.if t \{Outer false condition.
.br
.if n Inner one-line true condition.
.if t Inner one-line false condition.
.br
.if n \{Inner two-line true condition
without continuation and macros.\}
.if t \{Inner two-line false condition
without continuation and macros.\}
.br
Back to the outer false condition.\}
.br
.if n \{Outer true condition.
.if t \{Inner false condition.
inner\}middle\}end
After conditional.
.br
.if n \{Outer true condition.
.if t \{Inner false condition.
.\}middle\}end
After conditional.
.br
.if n \{Outer true condition.
.if t \{Inner false condition.
.B\}middle\}end
After conditional.