for self-modification to work, THEN is mandatory before line numbers

This commit is contained in:
Luxferre
2026-06-13 22:57:18 +03:00
parent 692018ec4f
commit 48c63cac8f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ Execute a statement `[stmt]` if the relation denoted by `relop` holds between `[
Examples: `IF A > B THEN LET C = A-B`, `IF X<1000 THEN GOTO 400`
Non-standard extension: if the `[stmt]` statement starts with a line number, LTTB doesn't execute it immediately but instead overwrites the original line with the number it starts with. This allows writing self-modifying programs in LTTB.
Non-standard extension: if `THEN` is specified **explicitly** and the `[stmt]` statement starts with a line number, LTTB doesn't execute it immediately but instead overwrites the original line with the number it starts with. This allows writing self-modifying programs in LTTB.
### `GOTO [expr]`