Ruby provides control keywords to manage loop execution:
for i in 1..5 next if i == 3 break if i == 4 puts i end
Output: 1, 2