< Previous | Contents | Next >
You can use break and continue in any loop you create; they aren’t just for while (true) loops. But you should use them sparingly. Both break and continue can make it harder for programmers to see the flow of a loop.