title: How to check a cell forward 1 for a turtle?
body: <p>Im looking to modify this code so that the turtle will only move into the cell that is forward 1 if there isn't already a turtle in there.</p>
  
  <pre><code>ask turtles
    [ let close-friend min-n-of 1 turtles with [my-group = [my-group] of myself] [distance myself]
    ask close-friend
  
    [ face myself
    forward 1
    ]
  ]
  </code></pre>
  
  <p>I looked at adding adding the number of turtles from forward 1 to a variable and then a IF statement  but i couldn't get it to work.</p>
  
  <p>Any reply's will be greatly appreciated.</p>