Shell Scripting if then elif
A new if can be nested inside an elif.
Syntax of if then elif is shown in the snapshot below,
Example if then elif:
We have shown the example of choosing color.
Look at the above snapshot, we have shown the script.
Look at the above snapshot, on Red color it goes to if part, on Blue color it goes to elif part and on other colors it goes to else part.