From: Benjamin Stiglitz Date: 2008-02-08T08:13:22+09:00 Subject: Re: New user - very basic question > Thank you for taking the time - could I trouble you further? If I want > the "reply" to iterate through until it reaches 100 could just add the > "while" to your code as below? > while reply < max > reply = reply + 1 > puts reply > end Even better is reply.upto(max - 1) { |x| puts x } -Ben -- Posted via http://www.ruby-forum.com/.