🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1170

Re: Test for nocurrentpoint

#1170
From: Erik Jacobsen
Date: Tue, 10 Oct 1989 13:11
23 lines
1276 bytes
In article <3439@daimi.dk> I write:
>
>How can I test if there is no currentpoint, or the current path
>is empty? I would like something like this:
>
>
>         thereisacurrentpoint { pathbbox ..... }
>                              { .....          } ifelse

The answer: To test if pathbbox executes with an error, you can do this:

          {pathbbox} stopped { ActionIfError } { ActionIfOk } ifelse

Thanks to jlk@daimi.dk

Erik

--------------------------------------------------------------------
Erik Jacobsen,     Computer Science Department,    Aarhus University
Ny Munkegade,    Building 540,       DK-8000 Aarhus C,       Denmark

Phone: +45 86127188, Telefax: +45 86135725, Home phone: +45 86169199
         Internet: erja@daimi.dk,           Ham-radio: OZ6KS
Technical Details
Message-ID: <3440@daimi.dk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!luth!sunic!dkuug!daimi!epimetheus!erja
References: <3439@daimi.dk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!luth!sunic!dkuug!daimi!epimetheus!erja
From: erja@epimetheus.dk (Erik Jacobsen)
Newsgroups: comp.lang.postscript
Subject: Re: Test for nocurrentpoint
Message-ID: <3440@daimi.dk>
Date: 10 Oct 89 13:11:42 GMT
References: <3439@daimi.dk>
Sender: news@daimi.dk
Reply-To: erja@daimi.DK (Erik Jacobsen)
Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
Lines: 23