mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user