User Tools

Site Tools


4rpl:commands:refexists

Index

Variable Exists (by reference)

Syntax

-?!

Description

Takes a string from the stack and uses it as a variable name. If the variable exists (has been assigned),1 (true) is pushed to the stack, otherwise 0 (false).

Examples

"Santa isn't r-" ->secret
 
if ("secret" -?!)
    "I know a secret" Trace
else
    "I know no secrets" Trace
endif
4rpl/commands/refexists.txt · Last modified: 2021/01/15 07:50 by Sanian