diff options
author | axel <axel@liljencrantz.se> | 2006-09-20 00:52:03 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-09-20 00:52:03 +1000 |
commit | 7a5823fd605af80df483e1d3f3629e60503488de (patch) | |
tree | 714e61c3c6cddec3eb7499e99121de2f3efdcb4e /doc_src/continue.txt | |
parent | 81d61c467b2fc42e7e890198fb2bd203b27aff44 (diff) |
Documentation updates from Beni Cherniavsky
darcs-hash:20060919145203-ac50b-bc87b8f5e6a18395e4bc3e364da4a40ad97850e7.gz
Diffstat (limited to 'doc_src/continue.txt')
-rw-r--r-- | doc_src/continue.txt | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/doc_src/continue.txt b/doc_src/continue.txt index 43335240..47009393 100644 --- a/doc_src/continue.txt +++ b/doc_src/continue.txt @@ -1,20 +1,19 @@ - \section continue continue - skip the rest of the current lap of the innermost currently evaluated loop \subsection continue-synopsis Synopsis -<tt>LOOP_CONSTRUCT; [COMMANDS...] continue; [COMMANDS...] end</tt> +<tt>LOOP_CONSTRUCT; [COMMANDS...;] continue; [COMMANDS...;] end</tt> \subsection continue-description Description The \c continue builtin is used to skip the current lap of the innermost currently running loop, such as a <a href="#for">for</a> loop or a <a href="#while">while</a> loop. It is usually added inside of a conditional block such as an <a href="#if">if</a> statement or a <a href="#switch">switch</a> statement. \subsection continue-example Example The following code removes all tmp files without smurfs. -<p> -<tt>for i in *.tmp; -<br> if grep smurf $i; -<br> continue; -<br> end; -<br> rm $i; -<br>end; -</tt> -</p> + +<pre> +for i in *.tmp + if grep smurf $i + continue + end + rm $i +end +</pre> |