Path: utzoo!attcan!uunet!husc6!think!ames!killer!pollux!ti-csl!home!martin From: martin@home.csc.ti.com (Steven Martin) Newsgroups: comp.sys.mac.hypercard Subject: Re: on idle "backgrounding" & switch{}/CASE Message-ID: <64086@ti-csl.CSNET> Date: 21 Nov 88 14:13:18 GMT References: <570@uva.UUCP> Sender: news@ti-csl.CSNET Reply-To: martin@home.UUCP (Steven Martin) Organization: TI Computer Science Center, Dallas Lines: 43 In article <570@uva.UUCP> borton@uva.UUCP (Chris Borton) writes: >Breaking the test-building process into chunks and doing them according to >the number passed seems fine; where the problem comes in is how to deal with >the number coming in and what to do--a CASE statement in Pascal, switch{} in C. > >As far as I can tell, there is no clean way to do this in HyperTalk other >than ungainly masses of if/then levels. If there is no better way, then I'll >probably end up doing that at several levels. But I'd rather not. Since you are stuck with if/then levels, here is a hopefully helpful tip on how to format then so that they don't indent to far. The old way. if .... then .... else if .... then .... else if.... then ..... end if end if end if The new way. if .... then .... else if .... then .... else if .... end if Hope that helps! Steve Martin USENET: {ctvax,im4u,texsun,rice}!ti-csl!martin GENIE: S.MARTIN8 PHONE: (214)-995-5919, 404-1061 What I am is what I am, are you what you are or what? - Edie Brickell & THE New Bohemians