Turtle and Observer Command

globals [variable-list]

Creates global variables. The variable-list contains one or more names. The globals declaration should be placed at the top of the observer procedures window or the turtle procedures window.

Examples:
globals [variable1 variable2 variable3]

Related commands:
turtles-own patches-own let