User Tools

Site Tools


4rpl:commands:read

Index

Get Variable

Syntax

<-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

#Increment a variable named 'i' by 1 and store the result back in 'i' 
<-i 1 + ->i 
4rpl/commands/read.txt · Last modified: 2021/01/14 18:26 by Sanian