on-internet
← Community

Can I use break to exit multiple nested 'for' loops?

Stack Overflow ·

Is it possible to use the break function to exit several nested for loops? If so, how would you go about doing this? Can you also control how many loops the break exits?

Comments

Sign in or sign up to comment and upvote.

No comments yet.