It creates a conditional loop:
You can create an infinite loop like:
break
Immediately leaves the loop body.
If you are using nested loops, you can use labeled blocks to indicate to which block it will break:
# This code will print "outer"
block outer:
while true:
block inner:
while true:
break inner
#break outer
echo "inner"
break outer
echo "outer"
continue
continue
skips the rest of the loop body for a new iteration.