User Tools

Site Tools


4rpl:commands:exists

Index

Variable Exists

Syntax

-?VARNAME

Description

Checks to see if a variable with name VARNAME exists (has been assigned). If so, 1 (true) is pushed to the stack else 0 (false).

Examples

if (-?TheAnswer) # checks if the variable exists
    "We have the answer" Trace
else
    "We do not have the answer" Trace
endif
4rpl/commands/exists.txt · Last modified: 2021/01/14 18:16 by Sanian