Introduction
The if-then-fi structure helps your script make decisions by running commands only when certain conditions are true.
Check if a file exists before trying to read it.
Run a command only if a user is logged in.
Decide what message to show based on a number's value.
Verify if a program is installed before using it.