This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:write [2021/01/13 22:33] – created virgilw | 4rpl:commands:write [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | + | < |
- | < | + | |
- | === Syntax | + | ====== |
- | ->VAR | + | |
- | === Description | + | ===== Syntax ===== |
- | Pops a value from the stack and stores in a variable named VAR. | + | |
- | === Examples === | + | -> |
- | <code 4rpl>1 ->a | + | |
+ | ===== Description ===== | ||
+ | |||
+ | Pops an item from the stack and stores it in the local variable named **VARNAME**. Local variables persist across script invocations. | ||
+ | |||
+ | ===== Examples | ||
+ | |||
+ | <code 4rpl> | ||
+ | 1 ->a | ||
3.14 ->number | 3.14 ->number | ||
" | " | ||
</ | </ | ||
+ | |||
+ | ~~NOTOC~~ | ||
+ |