groff
[Top][All Lists]
Advanced

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

Re: [Groff] condition: OR of two string comparisons


From: Ralph Corderoy
Subject: Re: [Groff] condition: OR of two string comparisons
Date: Thu, 06 Nov 2014 16:35:23 +0000

Hi Holger,

> .\" I found this for strings
> 
> .ds c "
> .ds d "
> .if '\*c'foo' .ds d "bar
> .ie '\*d'bar' .tm *9: true
> .el           .tm *9: false

If you want to preserve d's value for later use then you're back to
using a temporary variable to track success so far.

Cheers, Ralph.



reply via email to

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