🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #951

Case statements in Postscript

#951
From: Tom Kincaid
Date: Tue, 29 Aug 1989 17:14
10 lines
685 bytes
If I have a postscript variable V1 that can have a value 
 1 2 3 or 4 and I want to execute 

	/proc1 if V1 = 1
	/proc2 if V1 = 2
	/proc3 if V1 = 3
	/proc4 if V1 = 4

What is the best way to write the code ? Is there a case
statement of some sort ?
Technical Details
Message-ID: <7573@cg-atla.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!cg-atla!kincaid

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!cg-atla!kincaid
From: kincaid@cg-atla.UUCP (Tom Kincaid )
Newsgroups: comp.lang.postscript
Subject: Case statements in Postscript
Keywords: Novice Question
Message-ID: <7573@cg-atla.UUCP>
Date: 29 Aug 89 17:14:24 GMT
Distribution: comp
Organization: Agfa Compugraphic Division, Wilmington, Mass. USA
Lines: 10