title: How do I make turtles avoid patches in NETLOGO?
body: <p>My agents are boats moving on water, surrounding and at some places within that water are bits of land which need to be impossible to pass. I'm struggling to conceptualize how to tell an agent this information in netlogo. </p>
  
  <p>I've assigned</p>
  
  <pre><code>patches-own
  [DEPTH
  PASSABLE?
  ]
  </code></pre>
  
  <p>with</p>
  
  <pre><code>ask patches with [DEPTH &gt; 0] [set PASSABLE? FALSE]
  </code></pre>
  
  <p><strong>How do I tell a turtle to not cross over or occupy a patch with PASSABLE? = FALSE while engaging in an otherwise random walk search for</strong> </p>
  
  <pre><code>patches in-radius VISION with [DEPTH = 10]
  </code></pre>
  
  <p>? </p>
  
  <p>sorry for the lack of a reproducible example, but this is a more conceptual question than anything. I will rough out a simple example model if need be. </p>