Turtle, Observer, Patch

if condition [list of commands]

Parameters:
condition Boolean Condition that evaluates to either true or false
[list of commands] List of commands List of commands to execute of condition is true

Description:
Do [list of commands] if and only if condition reports true.

Examples:
if color = black [fd 5 rt 90] makes every black turtle move forward 5 steps and then turn right.

Related Commands:
ifelse