Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

3 bytes added, 09:11, 27 July 2020
Additional Logic Statements
[[Image:if-elif-else.png|thumb|right|300px|Example of how an '''if-elif-else''' statement works.]]'''if-elif-else Statements'''
If the test condition returns a TRUE value, then the Linux Commands between<br>then and else statements are executed.<br><br>If the test returns a FALSE value, then a new condition is tested,<br>and action is taken if the result is TRUE . Eventually, an action will be taken <br>when the final test condition is FALSE
Example:
13,420
edits

Navigation menu