basic/doc/statements/next.rs
1/*!
2# `NEXT [<variable>][,<variable>...]`
3Also see `FOR`
4
5## Purpose
6Used to indicate the end of a `FOR` loop.
7
8## Remarks
9`FOR` loops are stack based. Specifying an optional variable
10here will enforce that the stack frame being used matches.
11Some confusion (or abuse) can happen if using `GOTO` to break a loop.
12
13## Example
14```text
15FOR I=1 to 10:NEXT
16FOR J=1 to 20:FOR I=1 to 20:NEXT I,J
17```
18
19*/