Introduction
An if statement helps your program make decisions by choosing what to do based on a condition.
To check if a number is positive or negative.
To decide if a user is old enough to access a website.
To perform an action only when a button is clicked.
To check if a password entered is correct.