ifelse block


Description:

Does the first set of commands if the condition specified is true, otherwise it will do the second set of commands.

Arguments:

test (boolean): The condition being tested.

then (commands): The set of instructions that is done when the condition is true.

else (commands): The set of instructions that is done when the condition is false.

Examples:

This moves blue agents forward 1 and moves agents that are not blue back 1.