I have the code:
if pcolor = blue [ask turtles-here [set heading towards one-of neighbors4 with [pcolor] = grey ] fd speed ].
This has the aim of making a turtle that is spawned on a blue patch set its heading towards a neighbour with pcolor = grey and then follow that path. However when I run the code I get the error :
WITH expected a true/false value from (patch -12 14), but got 55 instead.
I don't know what caused the error and what I should do to correct it. Any help would be greatly appreciated.