13,420
edits
Changes
→Using Control Flow Statements in Shell Scripts
'''if-else statement:'''
<br>
[[Image:iflogic-else2.png|thumb|right|300px|Example of how an '''if-else''' control=flow statement works.<br>(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]
Unlike using only an ''if'' statement, an '''if-else''' statement take '''two different sets of actions'''<br>based on the results of the test condition.<br><br>