if [ test_command ]
then
fi
else
elif [ test_command ]
...
else (optional)
done
*) (可选 - any other value)
commands_to_execute_for_no_match
esac