Chapter 10
Which Way Did He Go?
IN THIS CHAPTER
Untangling complicated conditions
Writing cool conditional code
Intertwining your if statements
It's tax time again. At the moment, I’m working on Form 12432-89B. Here’s what it says:
Under this regulation, the undeclared possession of certain goods, items, articles, materials, or fragments, whether living or dead, or held as proxy for other individuals or agents, or in any form comparable to the ownership of such goods will be subject to all provisions under Section 6.1.03-89(b) [and consequently 6.1.03-90(ak)] of the aforementioned act or acts, whereupon said parties will be liable for all holds, leans, and obligations in perpetuity or under such limits as provided by law, or in the execution (supplemental or non-supplemental), handling, or consideration thereof.
No wonder I have no time to write! I’m too busy interpreting these tax forms.
Anyway, this chapter deals with the potential complexity of if statements. This chapter has nothing as complex as Form 12432-89B, but if you ever encounter something that complicated, you’ll be ready for it.
Forming Bigger and Better Conditions
In Listing 9-2 (refer to Chapter 9), the code ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access