Pig out on chocolate-chip cookies.

Single-branch IF Statements

The decision is about whether to buy cookies or just stroll on by. The decision looks like this:

Start at the top, then follow the line to the question:

Are You Hungry?

The answer to the question is either TRUE or FALSE.

If the answer is TRUE,
follow the line labeled TRUE,
to the box "Buy Cookies",
then follow the line to "Done".
If the answer is FALSE
follow the line directly to "Done".


How is this chart different from the ones in the previous chapter?