Block statement

Example:

  1. var found = false
  2. block myblock:
  3. for i in 0..3:
  4. for j in 0..3:
  5. if a[j][i] == 7:
  6. found = true
  7. break myblock # leave the block, in this case both for-loops
  8. echo found

The block statement is a means to group statements to a (named) block. Inside the block, the break statement is allowed to leave the block immediately. A break statement can contain a name of a surrounding block to specify which block is to leave.