13,420
edits
Changes
→Additional Logic Statements
<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>
'''if-elif-else statement:'''
[[Image:if-elif-else.png|thumb|right|300px|Example of how an '''if-elif-else''' statement works.<br>(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]