Switch Statements using Swift
Here the image of a
Switch represents two states, either on or off. In Swift
Switch statements allow us to have an alternative to
If statements to choose between two (or more) options.
Switch statements are relatively easy, there are a number of prerequisites for this article. Make sure you read up, and then get going on this guide!