The Ruby equivalent to continue is next. For example: intIndex = 0 while intIndex < 100 intIndex = intIndex + 1 if (intIndex % 2) == 1 next end puts "The value was odd: " + intIndex.to_s end
The above code, though dumb, would only print the string every other time. Nathan --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6187&messageID=17394#17394 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
