title: When 1 condition is true , 2 actions should take place at the same time in netlogo
body: <p>When a turtle moves to a particular patch, the patch should change colour and that turtle should die.<br>
  I know this can be done in if condition statements but how?</p>
  
  <p>I tried the following code, but it does not work.</p>
  
  <pre><code> to go   
      ask turtles [ 
        ask patches with [ pcolor = black ] 
        [ 
          if any? turtles-here with [ color = yellow  ] 
          [
            (set pcolor yellow) or ( one-of turtles-here die)] 
          ]
      ]
  end
  </code></pre>
  
  <p>Also there are many turtles, but only one turtle should die when this condition is given, and when the next turtle comes near this patch, it should move away.  </p>