parent
81a03238ed
commit
1ad7e4f30b
1 changed files with 3 additions and 1 deletions
|
|
@ -472,13 +472,15 @@ innermost construct, unless a label of a block is given:
|
||||||
echo "looping"
|
echo "looping"
|
||||||
break # leaves the loop, but not the block
|
break # leaves the loop, but not the block
|
||||||
echo "still in block"
|
echo "still in block"
|
||||||
|
echo "outside the block"
|
||||||
|
|
||||||
block myblock2:
|
block myblock2:
|
||||||
echo "entering block"
|
echo "entering block"
|
||||||
while true:
|
while true:
|
||||||
echo "looping"
|
echo "looping"
|
||||||
break myblock2 # leaves the block (and the loop)
|
break myblock2 # leaves the block (and the loop)
|
||||||
echo "still in block"
|
echo "still in block" # it won't be printed
|
||||||
|
echo "outside the block"
|
||||||
|
|
||||||
|
|
||||||
Continue statement
|
Continue statement
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue