for i = 1, 10 do
    if i == 5 then
        break  -- Exit the loop when i is 5
    end
    print(i)
end