condition [list of commands]
Do [list of commands] if condition reports true.
[list of commands]
condition
Examples: if color = black [fd 5 rt 90] would make every black turtle move forward 5 steps and turn right.
if color = black [fd 5 rt 90]
Related commands: ifelse