title: if elseif elseif else in netlogo
body: <p>I want to have a if elseif else if else structure in netlogo but it seems that at the moment it is not working.</p>
  
  <pre><code>  ifelse random 100 &lt; 68 [ set HBB-Genes "A,A" ];;68%
           [ifelse random 100 &lt; 2  [set HBB-Genes "S,S"] ;;2%
           [ifelse random 100 &lt; 15 [set HBB-Genes "A,A"];;15%
           [set HBB-Genes "A,A"] ;;15%
  
  
           ]]
  </code></pre>
  
  <p>I would like to have a 68% chance of occurring the set HBB-Genes with "A,A" and the next one with 2% chance of occurring and so on. If anyone has experience with netlogo and can help it will be much appreciated. Thanks.</p>