in simple words what I am struggling to do is:
if (colour of any patch = red) then execute some code
in simple words what I am struggling to do is:
if (colour of any patch = red) then execute some code
Only a turtle can check the pcolor. So this works:
ask turtles [show pcolor]
But this does not work (typed in on the Observer> prompt):
show pcolor
if any? patches with [pcolor = red] [
print "yes, there is at least one red patch"
]