Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!mis.mcw.edu!tenaglia From: tenaglia@mis.mcw.edu ("Chris Tenaglia - 257-8765") Newsgroups: comp.lang.icon Subject: Otherwise Message-ID: <0093C34EEBAB3D80.20201524@mis.mcw.edu> Date: 4 Sep 90 14:15:30 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 20 Concerning icon language constructs, I was wondering if there is any call for an 'otherwise' construct. This would be used in a conditional. This idea is based in part on tri-state logic that is popular in AI products. if (num/div) > lim then write("Is true.") else write("Is false.") otherwise write("Is unknown or &null or div by 0") This might be a cleaner way of handling things than messing with the error count, and could be very handy for development and debugging. Or maybe there's a more Iconish way of handling it. Any ideas? Chris Tenaglia (System Manager) | "Eat a good book lately?" Medical College of Wisconsin | Q to Worf STTNG 8701 W. Watertown Plank Rd. | _ Milwaukee, WI 53226 | ======= ------- (414)257-8765 | \===/=== tenaglia@mis.mcw.edu, mcwmis!tenaglia