This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:read [2021/01/13 22:30] – virgilw | 4rpl:commands:read [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~NOTOC~~ | + | < |
| - | < | + | |
| - | === Syntax | + | ====== |
| - | <-VAR | + | |
| - | === Description | + | ===== Syntax ===== |
| - | Reads the contents of the local variable VAR and pushes it to the stack. If VAR does not exist, 0 is pushed to the stack. | + | |
| - | === Examples === | + | < |
| - | <code 4rpl># | + | |
| + | ===== Description ===== | ||
| + | |||
| + | Reads the contents of the local variable **VARNAME **and pushes it to the stack. If **VARNAME **does not exist, 0 is pushed to the stack. Local variables persist across script invocations. | ||
| + | |||
| + | ===== Examples | ||
| + | |||
| + | <code 4rpl> | ||
| + | #Increment a variable named ' | ||
| <-i 1 + -> | <-i 1 + -> | ||
| </ | </ | ||
| + | |||
| + | ~~NOTOC~~ | ||
| + | |||