Introduction
Conditional statements help a program make decisions. They let the program choose what to do based on different situations.
When you want the program to do something only if a certain condition is true.
When you want to check user input and respond differently based on what the user types.
When you want to repeat actions but stop when a condition is met.
When you want to handle errors or special cases in your program.
When you want to compare values and take different actions depending on the result.