Revision [1323]

Last edited on 2010-03-22 15:41:37 by DavidLee
Additions:
break [levels]
====Description====
The break statement exits one or more levels of a while, for or until.
If no arguments are supplied then 1 level is exited.
%%
for i in a b c d e ; do
echo $i
if [ $i = "b" ] ; then
break ;
fi
done
%%
Results
%%
a
b
%%
Deletions:
The break statement exits one or more levels of a while, for or until


Revision [1322]

The oldest known version of this page was created on 2010-03-22 15:39:28 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki