From: Bertram Scharpf Date: 2006-04-13T04:30:49+09:00 Subject: Re: Shame on me poorr newbie " unexpected kend" Hi, Am Donnerstag, 13. Apr 2006, 02:42:39 +0900 schrieb James Edward Gray II: > On Apr 12, 2006, at 12:35 PM, alex mic wrote: > > > >def finddevice() > > ... > > while found!=1 > > ... > > while quest!="y" or quest!="n" > > ... > > store ++ > > That's not a valid Ruby statement. Try: > > store += 1 Further you probably want to increment `store' at the end of the _outer_ loop. Ruby is a good opportunity to write readable code. Do yourself a favour and take it. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de