Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
Mathematics
5.7K+ articles
Swift-Control-Flow
13 posts
Recent Articles
Swift - Guard Statement
Last Updated: 21 February 2023
Swift provides a special type of statement referred to as "guard" statement. A guard statement is capable to transfer the flow of control of a program if a certain conditi...
read more
Picked
Swift
Swift-Control-Flow
Swift - Control Statements in Loops
Last Updated: 28 February 2022
Control statements are used to control the flow of the loop. For example, we have written a for loop, inside the for loop we have written some 3 or 4 if conditions. Consid...
read more
Picked
Swift
Swift-Control-Flow
Swift - Nested if-else Statement
Last Updated: 11 September 2022
In Swift, a situation comes when we have to check an if condition inside an if-else statement then a term comes named nested if-else statement. It means an if-else stateme...
read more
Picked
Swift
Swift-Control-Flow
Swift - Repeat While loop
Last Updated: 09 December 2021
Sometimes there's a situation that comes when we have to execute a block of many numbers of times so to do this task we use the Repeat While loop. Or we can say that in Sw...
read more
Picked
Swift
Swift-Control-Flow
Swift - Decision Making Statements
Last Updated: 20 December 2021
Decision-making statements are those statements in which the compiler needs to make decisions on the given conditions. If the given condition is satisfied then the set of ...
read more
Picked
Swift
Swift-Control-Flow
Swift - Break Statement
Last Updated: 09 December 2021
The break statement is a loop control statement that is used to end the execution of an entire control flow statement immediately when it is encountered. When the break co...
read more
Picked
Swift
Swift-Control-Flow
Swift - If-else-if Statement
Last Updated: 11 September 2022
In Swift, the if-else if-else condition is used to execute a block of code among multiple options. It gives a choice between more than two alternative conditions as soon a...
read more
Picked
Swift
Swift-Control-Flow
Swift - Fallthrough Statement
Last Updated: 11 January 2022
Just like other languages in Swift also switch statement is very useful and powerful. It takes a value and then compare it with several possible matching pattern or we can...
read more
Picked
Swift
Swift-Control-Flow
Swift - Loops
Last Updated: 05 December 2021
In general, a loop is used for iteration and iteration means repetition. Using loops we can do anything n number of times. A loop can iterate infinite times until the cond...
read more
Picked
Swift
Swift-Control-Flow
Swift - While Loop
Last Updated: 12 September 2022
Just like other programming languages, the working of the while loop in Swift is also the same. It is used to execute a target statement repeatedly as long as a given cond...
read more
Picked
Swift
Swift-Control-Flow
Swift - For-in Loop
Last Updated: 05 December 2021
The for-in loop in Swift is very similar to for loop in Python. In Python, we write for iteration in range(). Here iteration is just a variable for iteration. In swift, al...
read more
Picked
Swift
Swift-Control-Flow
Swift - If Statement
Last Updated: 12 September 2022
Just like other programming languages in Swift language also if statement is used to execute the program based on the evaluation of one or more conditions or in other word...
read more
Picked
Swift
Swift-Control-Flow
Swift - If-else Statement
Last Updated: 18 October 2021
Just like other programming languages in Swift language also support the if-else statement. In the if-else statement, when the given condition is true then the code presen...
read more
Picked
Swift
TrueGeek
TrueGeek-2021
Swift-Control-Flow