Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!batcomputer!cornell!uw-beaver!milton!sumax!amc-gw!thebes!polari!polari.UUCP)!polari!Tom From: polari!Tom Benedict@sumax.seattleu.edu (smelly@polari.UUCP) Newsgroups: comp.sys.mac.hypercard Subject: Case Statements in HyperTalk Message-ID: <4370@polari.UUCP> Date: 6 Jun 91 14:32:32 GMT Sender: smelly@polari.UUCP Reply-To: polari!Tom Benedict (smelly@polari.UUCP)@sumax.seattleu.edu Distribution: na Organization: Seattle Online Public Access Unix (206) 328-4944 Lines: 13 Yer right, There ain't no case statements in HyperTalk. You can get close by doing a modification of your example. It works the same, but looks a little prettier. Instead of nesting a bunch of if..then..else statements you can use the ..else if.. form. Example: on keyDown key if key = a then blah else if key = b then blah else if key = c then blah end keyDown What this construct does is avoid all the ..end ifs ( you'll need a max of 1 'end if'). Hope this helps