User Tools

Site Tools


4rpl:commands:refread

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:refread [2021/01/13 22:42] – created virgilw4rpl:commands:refread [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~NOTOC~~ + <=[[4rpl:start| Index]]
-<=[[4rpl:start| Index]]+
  
-=== Syntax === +====== Get Variable by reference ======
-<-!+
  
-=== Description === +===== Syntax =====
-Pops a string from the stack and then treats that as a variable name to read. This allows dynamic reading of variables. +
  
-=== Examples === +<-varname <-! 
-<code 4rpl>42 ->abc + 
-#prints 42 +===== Description ===== 
-trace( <-!("abc") ) + 
 +Pops a string from the stack and then treats that as a variable name to read. This allows dynamic reading of variables. 
 + 
 +===== Examples ===== 
 + 
 +<code 4rpl> 
 +42 ->abc 
 +"abc" ->varname 
 + 
 +<-varname <-! Trace # prints 42
 </code> </code>
 +
 +~~NOTOC~~
 +
4rpl/commands/refread.1610577746.txt.gz · Last modified: 2025/02/14 14:56 (external edit)