Conditional statements (If & If else).

865    Asked by Diyatomar in Devops , Asked on Jan 29, 2020
Answered by Diya tomar

If statement is one of the conditional statements used within any programming language and same is used within bash scripting.

 Syntax -

 if ; then

 

 fi

 Along with if, else if conditional statements can be used to check extra conditions or 1 or more conditions.

 Syntax -




Your Answer

Interviews

Parent Categories