Introduction
Use if-then-else to make decisions in your script. It helps your script choose what to do based on conditions.
Check if a file exists before using it.
Decide what message to show based on user input.
Run different commands depending on system status.
Verify if a number is positive or negative.
Choose actions based on the time of day.