Turtle and Observer Command

ifelse condition [list of commands1] [list of commands2]

Do [list of commands1] if condition reports true, otherwise do [list of commands2].

Examples:
ifelse color = black [fd 2] [bk 2] would make black turtles move forward 2 steps and all other turtles move back 2 steps.

Related commands:
if case