i am trying to find if there is a turtle on patch ahead n whos speed - accelaration is <= 0. the code i came up with is:
if any? turtles on patch-ahead n with [speed <= (speed - aceleration)]
but this gives an error that patch-ahead expects a number, instead got agent set.
pleae help how can i do this.
n is a number variable. i want to excess the speed (speed is user defined variable of turtle) of the turtle at nth patch from the calling turtle. the command 'with' doesnt work here, please suggest any alternative to excess the speed of the turtle at, say, 3rd patch from the calling turtle.