Bash Scripting - Conditionals
What is the purpose of the
elif keyword in a Bash if-elif-else statement?elif keyword in a Bash if-elif-else statement?if and elifif keyword checks the first condition. If it is false, elif allows checking another condition.elif from other keywordselif is not for ending or starting scripts, nor for variable declaration. It extends conditional checks.if condition is false -> Option Celif extends conditions = B [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions