O'Reilly logo

Swift in 24 Hours, Sams Teach Yourself by BJ Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 6. Controlling Program Flow with Conditionals

What You’ll Learn in This Hour:

Image How to use if statements to control logic

Image How to use switch statements to control logic

Image How to use range and tuple matching for controlling flow

Image How to transfer control of code execution

In programming, you often need to make decisions in code based on the state ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required