groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Groff] how to use logical operators


From: Ted Harding
Subject: RE: [Groff] how to use logical operators
Date: Tue, 06 Apr 2010 16:34:25 +0100 (BST)

On 06-Apr-10 13:54:31, Richard Ray wrote:
> I know this is wrong
> Would someone fix it
> 
> .ds a foo
> .ds b bar
> .
> .if d a & d b \{\
> \*[a] \*[b]
> .\}
> 
> Richard

The following works:

.ds a foo
.ds b bar
.if d a \{\
.if d b \{\
\*[a] \*[b]
.\}
.\}

(You can test it by following ".ds b bar" with ".rm b" on the next
line, etc.).

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 094 0861
Date: 06-Apr-10                                       Time: 16:34:22
------------------------------ XFMail ------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]