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 17:42] – created virgilw4rpl:commands:refread [2021/05/30 13:58] (current) – [Syntax] WithersChat
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.txt · Last modified: 2021/05/30 13:58 by WithersChat