Path: utzoo!attcan!uunet!husc6!mailrus!ames!umd5!mimsy!aplcen!osiris!phil From: phil@osiris.UUCP (Philip Kos) Newsgroups: comp.lang.postscript Subject: looking for loop control Keywords: help loop break Message-ID: <1613@osiris.UUCP> Date: 24 May 88 19:27:16 GMT Organization: Johns Hopkins Hospital Lines: 21 A quick question for those much more gurufied than I at the art of generating legal PostScript... I'm in a situation where I want to do something equivalent to a C "do {} while (condition);" loop.. i.e. I want a loop to continue executing until some dynamic condition is satisfied (or dissatisfied, depending). The loop should be executed at least once regardless of the condition. Is there a basic PS construct that fits this need, or a simple way of combining one or two? The only loop control constructs I am very familiar with are "beg inc end { } for" and "n { } repeat". Answers should probably be emailed, I can summarize for other interested parties. If I don't hear from anyone soon I may find the answer myself, as I will be ordering the complete set of Adobe PS books either tomorrow or Thursday... Phil Kos Information Systems ...!uunet!pyrdc!osiris!phil The Johns Hopkins Hospital Baltimore, MD