if Statement if test-commands; then consequent-commands; [elif more-test-commands; then more-consequents;] [else alternate-consequents;] fi case statement case word in [ [(] pattern [| pattern]…) command-list ;;]… esac