Conditionals are a fundamental part of programming in Swift.
The first conditional statement you learn is the if statement. It’s not the only one, though, nor is it the most used.
Another example is a guard statement. Guard statements are often much more common than if statements.
Matteo has been developing apps for iOS since 2008. He has been teaching iOS development best practices to hundreds of students since 2015 and he is the developer of Vulcan, a macOS app to generate SwiftUI code. Before that he was a freelance iOS developer for small and big clients, including TomTom, Squla, Siilo, and Layar. Matteo got a master’s degree in computer science and computational logic at the University of Turin. In his spare time he dances and teaches tango.