Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!munnari.oz.au!metro!usage.csd.unsw.oz.au!ccadfa!prolix!dac From: dac@prolix.ccadfa.oz.au (Andrew Clayton) Newsgroups: comp.sys.amiga.programmer Subject: Re: AREXX Question. How To Goto. Message-ID: <188f0f97.ARN09980@prolix.ccadfa.oz.au> Date: 21 Jan 91 10:27:03 GMT References: <16433@venera.isi.edu> Reply-To: ccadfa.cc.adfa.oz.au!prolix!Dac Followup-To: comp.sys.amiga.programmer Organization: I'm not an Organization - I'm a person! Lines: 46 In article <16433@venera.isi.edu>, Sean Schur writes: > I would like to know what works as a "goto" statement in AREXX. > I noticed that you can "label" any point in the program with the > command - > > label: > > But once you've labeled that point, how do you tell the program to > go to that point? Is this the way to do a "goto" or am I way off base? CALL LABEL Your routine should have a RETURN e.g. /* Rexx */ Call Initialise Say "Initialise Completed" ... Initialise: Say "Do magic things here" Einstien = wrong SowsEar = SilkPurse Say "Time Flies Like an Arrow" Say "Fruit Flies Like A Banana" RETURN /* end of Arexx */ Hope this helps. Dac (p.s. Goto's are considered 'bad') _l _ _ // Andrew Clayton. Canberra, Australia. I Post . (_](_l(_ \X/ ccadfa.cc.adfa.oz.au!prolix!dac . . I am. -------- I cannot send or receive mail to or from sites outside of Australia.