User Tools

Site Tools


4rpl:commands:delete

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:delete [2021/01/13 22:37] – created virgilw4rpl:commands:delete [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~NOTOC~~ + <=[[4rpl:start| Index]]
-<=[[4rpl:start| Index]]+
  
-=== Syntax === +====== Delete Variable ======
---VAR+
  
-=== Description === +===== Syntax =====
-Deletes VAR (make it as if the variable was never assigned).+
  
-=== Examples === +<nowiki>--VARNAME</nowiki> 
-<code 4rpl>42 ->TheAnswer  + 
-trace(<-TheAnswer#prints out 42  +===== 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  
 +<-TheAnswer Trace # prints out 42  
 + 
 +--TheAnswer # delete variable 
 + 
 +if (-?TheAnswer) # checks if the variable exists 
 +    "We have the answer" Trace 
 +else 
 +    "We do not have the answer" Trace 
 +endif
 </code> </code>
 +
 +~~NOTOC~~
 +
4rpl/commands/delete.1610577438.txt.gz · Last modified: 2025/02/14 14:56 (external edit)