[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Conditional problem: "!" operator after "&"
From: |
brian m. carlson |
Subject: |
Re: [Groff] Conditional problem: "!" operator after "&" |
Date: |
Wed, 28 Jul 2010 14:16:58 +0000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Wed, Jul 28, 2010 at 09:55:42AM -0400, Larry Kollar wrote:
> 5 .if \n[NCS]&!\n[SIP] .nop NCS only.
> 6 .if !\n[NCS]&\n[SIP] .nop SIP only.
> 7 .if \n[NCS]&\n[SIP] .nop NCS and SIP.
> 8 .if !\n[NCS]&!\n[SIP] .nop actually it isn't because nothing is
> defined!
>
> Using parentheses doesn't change the results at all. Can anyone
> suggest a fix or at least a workaround?
I remember reading (in the Bell Labs CSTR for troff) that ! only works
at the beginning of an .if or .ie command. For example, set both NCS
and SIP to 0, and you'll find that it prints "This is a test, SIP only."
--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature