aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/end.txt
blob: b98aef82239541fac7db5ff88c465e1c90142792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\section end end - end a block of commands.

\subsection end-synopsis Synopsis
<pre>for VARNAME in [VALUES...]; COMMANDS; end
if CONDITION; COMMAND_TRUE [else; COMMAND_FALSE] end
while CONDITION; COMMANDS; end
switch VALUE; [case [WILDCARD...]; [COMMANDS...];...] end
begin; [COMMANDS...] end
</pre>

\subsection end-description Description
<tt>end</tt> ends a block of commands. For more information, read the
documentation for the block constructs, such as \c if, \c for and \
while.

The end command does not change the current exit status.