The Ruby equivalent to continue is next.  For example:

intIndex = 0
while intIndex < 100
&nbsp;&nbsp;intIndex = intIndex + 1
&nbsp;&nbsp;if (intIndex % 2) == 1
&nbsp;&nbsp;&nbsp;&nbsp;next
&nbsp;&nbsp;end
&nbsp;&nbsp;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

Reply via email to