< Previous | Contents | Next >
Using break and continue Statements
It’s possible to alter the behavior you’ve seen in loops. You can immediately exit a loop with the break statement, and you can jump directly to the top of a loop with a continue statement. Although you should use these powers sparingly, they do come in handy sometimes.