diff options
Diffstat (limited to 'doc_src/or.txt')
-rw-r--r-- | doc_src/or.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc_src/or.txt b/doc_src/or.txt index 1cd1d768..97707e06 100644 --- a/doc_src/or.txt +++ b/doc_src/or.txt @@ -7,12 +7,12 @@ COMMAND1; or COMMAND2 \subsection or-description Description -`or` is used to execute a command if the current exit status (as set by the last previous command) is not 0. +`or` is used to execute a command if the current exit status (as set by the previous command) is not 0. -`or` does not change the current exit status. - -The exit status of the last foreground command to exit can always be accessed using the <a href="index.html#variables-status">$status</a> variable. +`or` statements may be used as part of the condition in an <a href="#if">`and`</a> or <a href="#while">`while`</a> block. See the documentation +for <a href="#if">`if`</a> and <a href="#while">`while`</a> for examples. +`or` does not change the current exit status. The exit status of the last foreground command to exit can always be accessed using the <a href="index.html#variables-status">$status</a> variable. \subsection or-example Example |