To be able to do anything interesting, a Swift program needs to take decisions based on whether some condition is true or not. This is done through conditionals.
Swift has several conditionals. The most common one is the if statement, which we will cover in this article.

Cosmin is an iOS developer from Romania. He has worked with many programming languages over the years but none of them has had such a big impact on himself as Swift. When not coding, he likes to either play the guitar or study WW2 history.