From: "Carlos J. Hernandez" Date: 2008-01-12T06:09:50+09:00 Subject: Re: Loop question Mark Mr: Looks like mean you use if/else. > @this_question.answers.each do |a| > if (a.answer == row[cell]) > reply.reply = a.id > else > puts "Not Found" > end > end BTW, I think ruby is probably the best programming language there is for the beginner. I say so with basic, assembly, fortran, C, javascript, java, sh(ell)/bash, and perl in my past. And nothing beats a good book to get you started, and I think "Programming Ruby, The Pragmatic Programmer's Guide" is one of the best introductions I've ever read. You can even get a PDF version online, save a tree, and avoid a trip to the book store. Might as well be the bleeding edge version currently being written: http://www.pragprog.com/titles/ruby3