Newsgroups: comp.sys.mac.hypercard Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!pmafire!mica.inel.gov!guinness!usenet From: bcarter@claven.idbsu.edu (Bruce Carter) Subject: Re: Why no 'case' statement in Hypertalk? Suggestions? Message-ID: <1991Jun7.155807.24344@guinness.idbsu.edu> Sender: usenet@guinness.idbsu.edu (Usenet News mail) Nntp-Posting-Host: brucespc Organization: Boise State University - Courseware Development References: <55655@nigel.ee.udel.edu> Date: Fri, 7 Jun 1991 15:58:07 GMT In article <55655@nigel.ee.udel.edu> johnston@oscar.ccm.udel.edu writes: >Still simpler (forget all the else statements): > >on keyDown key > if key is "a" then beep > if key is "b" then beep 2 > if key is "c" then beep 3 > pass keyDown >end keyDown Simpler, but slower. In this construction all of the if statements have to be evaluated individually. <-> Bruce Carter, Courseware Development Coordinator bcarter@claven.idbsu.edu Boise State University, Boise, ID 83725 duscarte@idbsu.bitnet (This message contains personal opinions only) (208)385-1250@phone