Hockey.ex
- Posted by Ad Rienks <Ad_Rienks at COMPUSERVE.COM> Feb 19, 1997
- 1040 views
On february 19, Steve Elder wrote: >---------------------- Information from the mail header ----------------------- >Sender: Euphoria Programming for MS-DOS <EUPHORIA at MIAMIU.ACS.MUOHIO.EDU> >Poster: Steve Elder <SteveElde at AOL.COM> >Subject: Hockey.ex >-------------------------------------------------------------------------- ----- >Here's what I have so far. I added the while loop to hockey.ex to stop the >program from instantly dumping out under Windows 95, but the yes/no input >doesn't yet work. Any ideas? Hi Steve. The variable halt is declared as an atom (could be an integer), and the function input also returns an atom (or an integer). So to test the value of halt you need to test for an integer. This means you have to write: while halt = 1 do, without quotes around the 1. I think this will help. Ad.