Skip to content

Glossary: Swift Basics

break

A keyword that leaves a loop immediately, as when the register stops asking once a valid quantity is typed. Inside a `switch` it only leaves the `switch`.

Where the book teaches it

Related terms

continueloopwhile loop