FANDOM


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

?

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.