Hour 5. Controlling Program Flow with Conditionals
What You’ll Learn in This Hour:
How to use
if
statements to control logic
How to use
switch
statements to control logic
How to use pattern matching for controlling flow
How to transfer control of code execution
In programming, you often need to make decisions in code based on the state of a value, ...
Get Swift in 24 Hours, Sams Teach Yourself, Second Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.