Looping Control Flow
Get up to speed on Swift control flow, and find out how to write loops that repeatedly perform tasks until specified conditions are met.
Looping vs. conditional control flow
Regardless of the programming language used, application development is largely an exercise in applying logic, and much of the art of programming involves writing code that makes decisions based on one or more criteria. Such decisions define which code gets executed, how many times it is executed, and conversely, which code gets by-passed when the program is executing. This is often referred to as control flow since it controls the flow of program execution. Control flow typically falls into the categories of looping control flow (how often code is executed) and conditional control flow (whether code is executed). The concepts covered in this section intend to provide an introductory overview of both types of control flow in Swift.
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy