Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!rex!wuarchive!psuvax1!psuvm!cunyvm!byuvm!byuvax!taylorj From: taylorj@yvax.byu.edu Newsgroups: comp.sys.mac.hypercard Subject: Re: How to disable command-M? Message-ID: <1469taylorj@yvax.byu.edu> Date: 8 Aug 90 02:43:33 GMT Lines: 33 In <10955@cs.utexas.edu>, kseah@cs.utexas.edu (Kenneth Cheng-Lim Seah) writes: >You can have a series of nested if's to check for the various other ^^^^^^^^^^^^ >menu calls (e.g. Help, Find... etc). I don't mean to pick on the poster, but this seemed an opportune time to point out a useful but seemingly little-known feature of HyperTalk: that you don't need to nest if's. E.g. if foo = "bar" then ... else if foo = "blee" then ... else if foo = "xyzzy" then ... end if end if end if can be written much more simply and legibly as if foo = "bar" then ... else if foo = "blee" then ... else if foo = "xyzzy" then ... Although HyperTalk can't do case statements (sigh...) this at least lets you get much closer than using nested if's. Jim Taylor Microcomputer Support for Curriculum | Brigham Young University | Bitnet: taylorj@byuvax.bitnet 101 HRCB, Provo, UT 84602 | Internet: taylorj@yvax.byu.edu