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: 2025/02/14 14:57 by 127.0.0.1