I am new to netlogo so my question is maybe silly. I want to set the variable conv as true for two or more turtles together if they face each other. So I loop over all the turtles and ask them if there is a turtle in their cone of view. If there are some, I ask to those turtles if conv is false for them and if myself is in their cone of view. If this is the case, I need to set conv true for both the turtles that are facing each other. The code below obviously doesn't work, but I don't know how to write it differently.
ask turtles[ ask other turtles in-cone 4 90[ if (not conv) and (member? myself other turtles in-cone 4 90)[ set conv true set [conv] of myself true] ] ]