Conditional statements (If & If else).
If statement is one of the conditional statements used within any programming language and same is used within bash scripting.
Syntax -
if ; then
fi
Along with if, else if conditional statements can be used to check extra conditions or 1 or more conditions.
Syntax -