title: Find the difference between two variables of the agents of two different breeds - Netlogo
body: <p>I have 2 agent types, boys and girls. </p>
  
  <pre><code>breed [boys boy]
  breed [girls girl]
  </code></pre>
  
  <p>Each turtle has an age from a dataset. Also when an agent is a boy, its boy? is true, and if it is a girl, girl? is true.</p>
  
  <pre><code>turtles-own [ 
  
      age
       boy?
         girl?
  
  ]
  </code></pre>
  
  <p>They are connected by some random links. Now I want for each boy, I can access its girl neighbors, and the difference between their ages gets calculated. In other words, the age difference of two different breeds. I wrote this, but it does not work.</p>
  
  <pre><code>  ask boys [
  
      ask link-neighbors with [girls? = true]
      [  
        set Gage age]
         let H abs(item 0 age - item 0 Gage)  
    ]
  </code></pre>
  
  <p><strong>Edit</strong> When I use <code>ask link-neighbors with [girls? = true]</code>the neighbors are considered all together, while I want them to <strong>one by one</strong> be considered where I can compare their age difference and base on that do some other stuff.
  Any suggestions?
  Thanks</p>