]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/cond/string.in
implement the roff(7) d (macro or string defined) conditional
[mandoc.git] / regress / roff / cond / string.in
1 .TH STRING 1 "June 14, 2017" OpenBSD
2 .SH NAME
3 string \- conditional testing whether a string is defined
4 .SH DESCRIPTION
5 .ie d mystr OOPS
6 .el mystr not yet defined
7 .br
8 .ds mystr mystrval
9 .ie d mystr now defined
10 .el OOPS
11 .if !d mystr OOPS
12 .PP
13 .ie d mymac OOPS
14 .el mymac not yet defined
15 .br
16 .de mymac
17 mymacval
18 ..
19 .ie dmymac now defined
20 .el OOPS
21 .if !d mymac OOPS
22 .PP
23 .ie d myren OOPS
24 .el myren not yet defined
25 .br
26 .rn SM myren
27 .ie d myren now defined
28 .el OOPS
29 .if !d myren OOPS