April 1994
Beginner
432 pages
6h 37m
English

The if statement is great for simple testing of data, especially if your data tests have only two or three possibilities. You can use if to test for more than two values, but if you do, you have to nest several if statements inside one another, and that can get confusing and hard to maintain.
Consider for a moment how you execute code based on a user’s response to a menu. A menu is a list of options from which to select, such as this one:
Read now
Unlock full access