This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:delete [2021/01/13 22:37] – created virgilw | 4rpl:commands:delete [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | + | < |
- | < | + | |
- | === Syntax | + | ====== |
- | --VAR | + | |
- | === Description | + | ===== Syntax ===== |
- | Deletes VAR (make it as if the variable was never assigned). | + | |
- | === Examples === | + | < |
- | <code 4rpl>42 -> | + | |
- | trace(< | + | ===== Description ===== |
- | --TheAnswer | + | |
- | trace(<-TheAnswer) #prints out 0 | + | Deletes the variable with name **VARNAME **(make it as if the variable was never assigned). |
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | <code 4rpl> | ||
+ | 42 -> | ||
+ | < | ||
+ | |||
+ | --TheAnswer | ||
+ | |||
+ | if (-?TheAnswer) # checks if the variable exists | ||
+ | "We have the answer" | ||
+ | else | ||
+ | "We do not have the answer" | ||
+ | endif | ||
</ | </ | ||
+ | |||
+ | ~~NOTOC~~ | ||
+ |