title: NetLogo Lists and Conditional Modification
body: <p>I want to selectively modify some members of a list but not all depending on whether the members satisfy some condition. For instance, in a list of values I want to subtract 9 from all values that are greater than 9.</p>
  
  <p>I tried </p>
  
  <pre><code>set nodeext2 map nodeext2 [ifelse-value (? &gt; 9)  [? - 9][?]]
  </code></pre>
  
  <p>But get an 'expected a constant'-error. I have also tried if-else and playing around with brackets. Can anyone help me? I feel as if this is probably clearly stated somewhere but I haven't been able find where.</p>