This commit is contained in:
Miran 2020-11-20 12:31:06 +01:00 • committed by GitHub
commit 1ad7e4f30b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -472,13 +472,15 @@ innermost construct, unless a label of a block is given:
echo "looping"
break # leaves the loop, but not the block
echo "still in block"
echo "outside the block"
block myblock2:
echo "entering block"
while true:
echo "looping"
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