Summary
You’re doing great! You learned how to use if
and switch
statements, which means you are now able to write your own programs that do different things based on different conditions.
You also learned about optionals and optional binding. This means you can now represent variables that may or may not have a value, and execute instructions only if a variable’s value is present.
In the next chapter, you will study how to use a range of values instead of single values, and how to repeat program statements using loops.
Join us on Discord
Read this book alongside other iOS developers and the author Ahmad Sahar. Ask questions, provide solutions to other readers, chat with the author via Ask Me Anything sessions and much more. SCAN the QR code or visit the link to join the community.