13,420
edits
Changes
→Additional Logic Statements
'''if-else Statements'''
If the test condition returns a TRUE value, then the Linux Commands between then and else statements are executed. �If the test returns a FALSE value, then the the Linux Commands between the else and fi statements are executed.�
Example:
num1=5�num25<br>num2=10<br>if test $num1 –lt $num2<br>then<br> echo “Less Than”<br>�elseelse<br>echo “Greater Than or Equal to”<br>fi
===Additional Loop Statements===