Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

No change in size, 10:56, 5 September 2020
no edit summary
===Additional Logic Statements===
<br>
[[Image:if-else.png|thumb|right|300px|Example of how an '''if-else''' statement works.<br>(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc]])'''if-else Statements'''
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>''How it Works:''<br>When the test condition returns a '''TRUE''' value, then the Linux Commands between<br>'''then''' and '''else''' statements are executed.<br>If the test returns a '''FALSE''' value, then the the Linux Commands between<br>the '''else''' and '''fi''' statements are executed.<br><br>
13,420
edits

Navigation menu