From: Mark Mr Date: 2007-12-12T02:25:33+09:00 Subject: While statements in ruby Hi guys, I have a probably simple question. I dont know how to do iteration loops in ruby that reference more than one item of an array or more than one array. Here's an example of what I would do in php. Can anyone convert this to ruby? Thanks :) while ($i=0; $i < $response_table.length; $i += 2) { $response_table[$i] $response_table[$i + 1] } or something like this would work too if i made an array for questions and a separate one for answers while ($i=0; $i < array_count; $i++) { $question_table[$i] $answer_table[$i] } -- Posted via http://www.ruby-forum.com/.