13,420
edits
Changes
→Additional Logic Statements
[[Image:if-else.png|thumb|right|300px|Example of how an '''if-else''' statement works.]]'''if-else Statements'''
'''Example:'''
<span style="font-family:courier;font-weight:bold;">num1=5<br>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</span><br><br>
[[Image:if-elif-else.png|thumb|right|300px|Example of how an '''if-elif-else''' statement works.]]'''if-elif-else Statements'''