Observer Command

ask-patches-with [condition] [list of commands]

This observer command asks all patches satisfying [condition] to run the [list of commands].

Examples:
ask-patches-with [color = red] [setpc blue] colors all red patches blue.

Related commands:
ask-turtles-with ask-frogs-with