Apex supports five types of procedural loops.
These types of procedural loops are supported:
All loops allow for loop control structures:
- break; exits the entire loop
- continue; skips to the next iteration of the loop