NAMEP name NAME? name
name
Outputs TRUE if the input is the name of a variable. Outputs FALSE, otherwise.
name must be a word.
DEFINE "ABC [[a b] [PRINT :a] [PRINT :b]] MAKE "xyz 1 SHOW NAMEP "ABC false SHOW NAMEP "xyz true
DEFINE "ABC [[a b] [PRINT :a] [PRINT :b]] MAKE "xyz 1 SHOW NAMEP "ABC
SHOW NAMEP "xyz