Reporter must report a boolean (true or false) value.
If condition reports true, runs commands.
The reporter may report a different value for different agents, so some agents may run commands and others don't.
if xcor > 0[ set color blue ] ;; turtles in the right half of the world ;; turn blue
See also ifelse, ifelse-value.
Take me to the full NetLogo Dictionary