From: 7stud -- Date: 2008-01-30T07:49:33+09:00 Subject: Re: For Loop question Mark Mr wrote: > ok basically i cant quite figure out how to do a for loop i want in > ruby. Here's what i want to do in C++, with some ruby mixed in > > for (i = 0; @question_array[i].nil?; i++) > { > > code here.... > > } > > it's supposed to run until it finds an element of the array that isnt > blank and then stop. anyone know how to make a loop like this in ruby? > thanks :) "isnt blank" != nil -- Posted via http://www.ruby-forum.com/.