local

Help Contents First Steps In Logo Built-in instructions local
print make

local
make


Another common action that Logo can do is to create variables and change their values.

There are two instructions that ask Logo to do this.

When Logo executes local, then it creates a local variable. It will be local to the action which is currently being in progress.

If there is such local variable then it does nothing.

In most cases when an action is completed, all its local variables are cleared.

local is like print. It uses all the things that it can find after it, but unlikely print, local expects to find only words, which it uses as names of variables.

	local "x "y "done
The other instruction to create variables is make. You have already met it. Except for creating variables it can be also used to modify their values. To do this Logo needs two arguments - the name of a variable and its new value.

That's why the most common use of this instruction is in the form of:
	make "a 1
	make "b :a+10

Examples:

References:

print make