User Tools

Site Tools


4rpl:commands:refexists

This is an old revision of the document!


Index

Variable Exists (Dynamic)

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.1610666617.txt.gz · Last modified: 2021/01/14 18:23 by Sanian