From: Chris Bailey Date: 2008-08-28T11:39:32+09:00 Subject: Re: Having a difficult time with Case statements. Michael W. Ryder wrote: > Chris Bailey wrote: >>> exits the case statement. An alternative is to set startstate in the >>> main program and then call startUp with the current startstate -- i.e. x >>> = startUp(startstate). Then test x to see if you want to call startUp >>> again or exit the program. >> >> Wrapped a call to startUp() into the main game loop and made startstate >> global....it's working like a charm now! =) Thanks a billion! >> > > Glad to see you got it working. I think what you were trying to do > would have worked in C as the case statements keep executing until they > hit a break. Yeah I was expecting them to continue until told to quit! Is there a way to repeat cases in ruby without dancing around it? -- Posted via http://www.ruby-forum.com/.