Berikutnya jika Ruby

for i in 5...11   
   if i == 7 then   
      next   
   end   
   puts i   
end
Output:
5
6
8
9
10
Zagham Abbas