netlogo comparing turtle variables
问题 I'm writing a program which groups turtles into different groups. I am trying to write a command where if there is a turtle in a different group within a 1 until radius of the turtle the command runs. This is what I have to confront ask turtles [if [ group ] of turtles in-cone 1 180 != group [set color brown]] end However the command is coming out true even when there is not a turtle in a different group nearby. 回答1: may be something like : to confront ask turtles if any? turtles in radius 2