TO
BASIC keyword | |
Keyword: | TO |
Abbreviation: | – |
Type: | Keyword part |
Token code: | 164/$A4 |
Handling routine in BASIC ROM: |
???–??? $????–$???? |
List of all BASIC keywords |
Remark: This article describes the BASIC keyword TO in BASIC V2 at the Commodore 64.
Type: Keyword part
In Commodore BASIC V2, the keyword TO is used in two contexts:
- As part of a FOR-NEXT loop.
- As part of the "GO TO" construct: This does exactly the same as GOTO, but the "split" into the words "GO" and "TO" has been implemented, seemingly to maintain compatibility with other (earlier?) "flavors" of BASIC.
Important: This keyword don't use as a name of a variable or a part of them. When TO isn't used as right keyword the BASIC error ?SYNTAX ERROR occurs.
ABS | AND | ASC | ATN | CHR$ | CLOSE | CLR | CMD | CONT | COS | DATA | DEF | DIM | END | EXP | FN | FOR | FRE | GET | GET# | GOSUB | GOTO | IF | INPUT | INPUT# | INT | LEFT$ | LEN | LET | LIST | LOAD | LOG | MID$ | NEW | NEXT | NOT | ON | OPEN | OR | PEEK | π | POKE | POS | PRINT | PRINT# | READ | REM | RESTORE | RETURN | RIGHT$ | RND | RUN | SAVE | SGN | SIN | SPC | SQR | STATUS/ST | STEP | STOP | STR$ | SYS | TAB | TAN | THEN | TIME/TI | TIME$/TI$ | TO | USR | VAL | VERIFY | WAIT