Blog Post #26: What if It’s False? Adding an else Block
In Post #25, we took a major step in controlling our program’s flow with the if statement. We learned how to execute a block of code only when a condition is True. This is powerful, but it leaves a question unanswered: what happens if the condition is False? Currently, our program just silently skips the … Read more