user
Task

Document common flow-control structures.

One common example of a flow-control structure is the    `goto`    construct.

Note that   Conditional Structures   and   Loop Structures   have their own articles/categories.

Related tasks

* Conditional Structures
* Loop Structures
assistant
(formerly Perl 6)

### Control exceptions

Control flow is extensible in Raku; most abnormal control flow (including the standard loop and switch exits) is managed by throwing control exceptions that are caught by the code implementing the construct in question. Warnings are also handled via control exceptions, and turn into control flow if the dynamic context chooses not to resume after the warning. See [S04/Control exceptions] for more information.

### Phasers

Phasers are blocks that are transparent to the normal control flow but that are automatically called at an appropriate phase of compilation or execution. The current list of phasers may be found in [S04/Phasers].

### goto

```
TOWN: goto TOWN;

```

Labels that have not been defined yet must be enclosed in quotes.