Thinking in code · Making decisions

If, otherwise

Many choices have two outcomes, pass or try again, open or closed, and a program needs exactly one of them each time.