if / then / elif / else / fi
#Branch on command exit status: zero means success.
#!/usr/bin/env bash
count=3
if (( count > 5 )); then
printf '%s\n' Many
elif (( count > 0 )); then
printf '%s\n' Some
else
printf '%s\n' None
fiPractical useUse this construct in your own practice project.
Common mistakesBash tests exit status, not printed text; close the construct with fi.
Source: www.gnu.org documentation