basics/for_loop_continue.rb

tests/_examples/basics/for_loop_continue.rb in the metorex repository.

# A for loop that skips one value with next
for i in 1..5
  if i == 3
    next
  end
  puts i
end

Output:

1
2
4
5