I wish -
if elseif else statement in NetLogo. How can I do so efficiently? I checked NetLogo documentation no command to do so. Previous similar question didn't answer it directly but solved in the context.
One simple solution is:
let flag true if(condition1) [ ... set flag false ] if(flag and condition2) ;else if statement [ ... set flag false ] if(flag) ;else statement [ ... ]
I am looking for others more efficient ones.
Edit: added flag in the second if condition upon Nicolas's suggestion.