13,420
edits
Changes
→Additional Logic Statements
===Additional Logic 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�num2=10<br>if test $num1 –lt $num2<br>then<br> echo “Less Than”<br>�else<br>echo “Greater Than or Equal to”<br>fi
===Additional Loop Statements===