PRIMITIVEP

Synopsis
PRIMITIVEP name
PRIMITIVE? name
Description

Outputs TRUE if the input is the name of a primitive (one that is built into FMSLogo), outputs FALSE otherwise. Note that many of FMSLogo's procedures are library procedures, not primitives.

name must be a word.

Example
TO FWD :arg
  FORWARD :arg
END

SHOW PRIMITIVEP "FWD
false

SHOW PRIMITIVEP "FORWARD
true

SourceForge.net Logo