From: hazal Ates Date: 2010-07-27T20:43:48+09:00 Subject: Re: stop program with entering a key... Thiago Massa wrote: > Just define a function like "play_game" and do a loop that gets the > input in > order to play the game or not and calls that function. > > I don't even know how to use goto's. > > 2010/7/26 hazal Ates thank you TM and others ; let me give an example what i want in Pascal code : writeln('continue ? // finish game =====> y / n '); writeln; readln(k); if (k='E') or (k='e') then goto (begining of prog.); can you give an example to run same code in ruby ? -- Posted via http://www.ruby-forum.com/.