aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/or.txt
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-05-19 13:00:40 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-05-19 13:01:12 -0700
commit30ea7cc3f8a5d56ad30dc749ea374363c15f312a (patch)
tree93d6ec24f73cd82906ab1c8c622451c3f62a9524 /doc_src/or.txt
parent573b3797a507c3912197ebd4f2df0dc0398d3826 (diff)
Update docs to reflect new if/while condtion chaining
Documents new behavior in #1428
Diffstat (limited to 'doc_src/or.txt')
-rw-r--r--doc_src/or.txt8
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