blueloveTH 06068ab3e0 ...
2023-05-03 21:43:37 +08:00

27 lines
376 B
Markdown

---
icon: dot
title: Goto Statement
---
pkpy supports `goto` and `label` just like C. You are allowed to change the control flow unconditionally.
## Syntax
Labels are named a dot `.` and an identifier.
```
$goto <identifier>
$label <identifier>
```
## Example
```python
for i in range(10):
for j in range(10):
for k in range(10):
$goto exit
$label exit
```