In this tutorial you will learn about the Swift Flow Control Statements and its application with practical example.
Swift Flow Control Statements
Loops statements gives you a way execute the block of code repeatedly. But sometimes, you may want to exit a loop completely or skip specific part of a loop when it meets a specified condition. It can be done using flow control mechanism.
In Swift, you have flow control statements that can be used to alter or control the flow of loop execution based on specified conditions. We have following flow control statements –