On Sat, Mar 22, 2008 at 4:57 AM, Philip Cohen <[EMAIL PROTECTED]> wrote:

> I've been working at a new job with Pipes for about six months now, with
>  Hobart Spitz. It's so *good* to be plumbing again. I haven't had
>  occasion to write before, though I have been following the list for
>  years. Always enjoy reading it.

Welcome! You're in good company there...

>  What's a simple idiom for 'emit a specified record iff there are no
>  input records'? There being no 'not dam', the best I've come up with is
>    spec 1-* 1 set #0+=1 eof if #0=0 then /yuck/ 1 else nowrite endif
>  What am I missing?

You probably need the 'ifempty' option of 'strliteral' for that.

PS Be careful to look at 'pipe help literal' (although for syntactical
reasons you can not use it there). The strliteral alias is missing
from the helplib so you get the (incomplete) CMS HELP version...

Rob
--
Rob van der Heij
Velocity Software GmbH
http://velocitysoftware.com/

Reply via email to