FANDOM


Syntax

DEFINED? name

Explanation

DEFINED? outputs TRUE if the input is a name of a primitive procedure or a user-defined procedure; otherwise; it outputs FALSE.

Examples

? DEFINED? "FORWARD

Result: TRUE

? DEFINED? "BLIMP

Result: FALSE

? TO MYPROC

> PRINT [THIS IS MY PROCEDURE.]

> END

MYPROC defined

? IF DEFINED? "MYPROC THEN MYPROC

THIS IS MY PROCEDURE.

?

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.