Introduction
An if-else statement helps your program make choices. It runs one set of instructions if something is true, and another set if it is false.
Deciding if a user is old enough to sign up for a website.
Checking if a number is positive or negative before printing a message.
Choosing what message to show based on the time of day.
Turning on a light if it is dark, or turning it off if it is bright.