I want to have if if elseif else if else structure in netlogo, but it seems like it is not working at the moment.
ifelse random 100 < 68 [ set HBB-Genes "A,A" ];;68% [ifelse random 100 < 2 [set HBB-Genes "S,S"] ;;2% [ifelse random 100 < 15 [set HBB-Genes "A,A"];;15% [set HBB-Genes "A,A"] ;;15% ]]
I would like to have a 68% chance of having an HBB-Genes set with "A, A" and the next with a 2% probability, etc. If someone has experience with netlogo and can help him, he will be tested a lot. Thanks.
source share