Besides if and else statements, Bash offers case or switch statements and loop constructs that can be used to simplify logic so that it is more readable and sustainable. Imagine creating an if statement with many elif evaluations. It would become cumbersome!
#!/bin/bashVAR=10# Multiple IF statementsif [ $VAR -eq 1 ]; then echo "$VAR"elif [ $VAR -eq 2]; then echo "$VAR"elif [ $VAR -eq 3]; then echo "$VAR"# .... to 10else echo "I am not looking to match this value"fi