This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:read [2021/01/13 22:26] – created virgilw | 4rpl:commands:read [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === Syntax === | + | <=[[4rpl: |
- | <-VAR | + | |
- | === Description | + | ====== |
- | 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 === | + | ===== Syntax ===== |
- | <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~~ | ||
+ |