Loop Controls

A loop can be stopped or skipped using either:

 

  • break
  • continue

 

The break command will stop the loop when a specific condition is met.

 

Alternatively, the loop can be made to continue past a specific condition, using the continue command.