Turtle, Observer, Patch |
ifelse condition [list of commands1] [list of commands2]
Boolean | Condition that evalutes to either true or false | |
List of commands | Runs if condition is true | |
List of commands | Runs of [list of commands1] is false |
ifelse color = black [fd 2] [bk 2]