From: ts Date: 2001-11-14T22:19:27+09:00 Subject: [ruby-talk:25169] Re: exiting blox >>>>> "N" == Niko Schwarz writes: N> ,----[ eval.rb ] N> | ruby> 1.upto(5) { |i| N> | ruby| if i.divmod(2) == 0 then #divmod don't return what you think pigeon% ruby -e 'p 1.divmod(2)' [0, 1] pigeon% Try with `if i.divmod(2)[1] == 0 then' N> | ruby| break N> | ruby| end N> | ruby| puts i N> | ruby| } Guy Decoux