can-move?

can-move? distance
Turtle Command

Reports true if the calling turtle can move distance in the direction it is facing without violating the topology; reports false otherwise.

It is equivalent to:

patch-ahead distance != nobody

Take me to the full NetLogo Dictionary