Is it possible to use the break function to exit several nested for loops?
break
for
If so, how would you go about doing this? Can you also control how many loops the break exits?
No, don't spoil it with a break. This is the last remaining stronghold for the use of goto.
goto
2.1m questions
2.1m answers
60 comments
57.0k users