User Tools

Site Tools


crpl:docs:refexists

<- CRPL reference <- Vars and Functions

-?!

ArgumentsResultNotation
0 or 1 depending on if variable exists s1 -- b1

Description

Takes a string from the stack and uses it as a variable name. Checks to see if the variable exists (has been assigned). If so, 1 is pushed to the stack else 0.

Examples

# Build a string by concatenating "xy" and "z". 
"xy" "z" concat 
-?! trace
crpl/docs/refexists.txt · Last modified: 2021/02/05 11:43 by Karsten75