title: NETLOGO: How do I make a turtle die if there are two turtles on one patch?
body: <p>What I'm trying to figure out is how to make one turtle die when there are two turtles on any one patch.</p>
  
  <p>This is what I've been attempting so far:</p>
  
  <pre><code>to deathbytubes
    if ask patches [show count turtles-here] &gt;= 2
    [die]
  end
  </code></pre>
  
  <p>How can I fix this so that it works?</p>
  
  <p>Also, can anyone help me figure out how to make turtle die when it comes into contact with another turtle as an alternative?</p>