basic/doc/statements/on.rs
1/*!
2# `ON expression <GOTO|GOSUB> <line>[,<line>...]`
3
4## Purpose
5Branches to a line based on the value of expression.
6
7## Remarks
8The value 1 goes to the first line, 2 the second, etc.
9Values of 0 or greater than the number of lines do not branch.
10Values < 0 cause an `?ILLEGAL FUNCTION CALL` error.
11
12## Example
13```text
14```
15
16*/