User Tools

Site Tools


4rpl:commands:read

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:read [2021/01/13 22:26] – created virgilw4rpl:commands:read [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-=== Syntax === + <=[[4rpl:start| Index]]
-<-VAR+
  
-=== Description === +====== Get Variable ======
-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>#Increment a variable named 'i' by 1 and store the result back in 'i' + 
 +<-VARNAME 
 + 
 +===== 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' by 1 and store the result back in 'i' 
 <-i 1 + -> <-i 1 + ->
 </code> </code>
 +
 +~~NOTOC~~
 +
4rpl/commands/read.1610576807.txt.gz · Last modified: 2025/02/14 14:56 (external edit)