From: "Kumar R." Date: 2013-03-05T07:20:23+09:00 Subject: Re: How `next` works in ruby with `unless` ? Matthew Kerwin wrote in post #1100097: > What Joel said. > > Also, why are you calling 'next nil' ? My interest is only with that part : n = 1 #=> 1 loop do print "#{n}" n = n + 1 next puts "hi" unless n == 5 p "good" break end #1hi #2hi #3hi #4"good" #=> nil In the above code, couldn't understand about which order the lines `puts "hi"` and `unless n == 5` executed. Which executed first? the rest one I pasted here by mistake. Sorry for that. Please ignore the second part. -- Posted via http://www.ruby-forum.com/.