diff options
author | Mark Griffiths <mark@thebespokepixel.com> | 2014-08-19 13:41:23 +0100 |
---|---|---|
committer | Mark Griffiths <mark@thebespokepixel.com> | 2014-09-03 14:43:26 +0100 |
commit | 137abd0cfaa8959224f88a4ebe9584a51468cc88 (patch) | |
tree | c396f760a1e309b5a837359e65c57c4555534d49 /doc_src/while.txt | |
parent | d7308fecbe573aad91fc6f1377c1ed2df735f6fd (diff) |
Make line length, wrapping and spacing consistent
Diffstat (limited to 'doc_src/while.txt')
-rw-r--r-- | doc_src/while.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/doc_src/while.txt b/doc_src/while.txt index 3de3f54a..c06874d5 100644 --- a/doc_src/while.txt +++ b/doc_src/while.txt @@ -6,15 +6,13 @@ while CONDITION; COMMANDS...; end \endfish \subsection while-description Description -`while` repeatedly executes `CONDITION`, and if the exit status -is 0, then executes `COMMANDS`. -If the exit status of `CONDITION` is non-zero on the first iteration, -`COMMANDS` will not be executed at all. +`while` repeatedly executes `CONDITION`, and if the exit status is 0, then executes `COMMANDS`. + +If the exit status of `CONDITION` is non-zero on the first iteration, `COMMANDS` will not be executed at all. + +Use <a href="#begin">`begin; ...; end`</a> for complex conditions; more complex control can be achieved with `while true` containing a <a href="#break">break</a>. -Use <a href="#begin">`begin; ...; end`</a> for complex conditions; more -complex control can be achieved with `while true` containing a -<a href="#break">break</a>. \subsection while-example Example |