Conditionals
As we write more complicated programs, we don’t always want them to do the same thing in all cases. We might want them to do one thing in one situation, and another thing in a different one. For example, a computer game does one thing while the game is in progress, but behaves differently when the game is over.
In this chapter, we will look at several kinds of conditional statements that will allow us to different things in different situations.