NAME

Syntax

NAME object name

Explanation

NAME defines a variable using the name of the second input and assigns the first input as the value of that variable.

Once you have created the variable, you can get its contents by using :name. Think of the colon as "the value of name."

NAME is equivalent to MAKE except that inputs are in reverse order.

To keep a variable local to the procedure in which NAME or MAKE is used, see LOCAL and PUBLIC.

Examples

? NAME 73 "NUMBER

? :NUMBER

Result: 73

? NAME "MAGENTA "COLOR

? :COLOR

Result: MAGENTA

? NAME FIRST [A B C D] "CHOICE

? :CHOICE

Result: A

?