Turtle Command

pendown?

Returns true if the turtle's pen is down, otherwise false.

Examples:

if pendown? [setc blue] commands the caller to set its color to blue if its pen is down.

Related commands:
pendown?-at pendown?-of pendown?-towards pd pu