Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/scrpt/scrpt2.6.4.html
Дата изменения: Fri Jan 17 12:43:20 1997 Дата индексирования: Tue Oct 2 01:15:45 2012 Кодировка: Поисковые слова: р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п р п |
It is often necessary to handle exception conditions within loops. The statements break and continue are used for this.
The break command terminates the execution of the innermost enclosing loop, causing execution to resume after the nearest done statement.
To exit from n levels, use the command:
break n
This will cause execution to resume after the done n levels up.
The continue command causes execution to resume at the while, until or for statement which begins the loop containing the continue command.
You can also specify an argument n|FR to continue which will cause execution to continue at the n|FRth enclosing loop up.