run

Help Contents First Steps In Logo Built-in instructions run
ob Controlling program flow

run


When Logo reads your program it knows what instructions to run and in what order.

Anyway, there are cases when you want to ask Logo to run instructions which are unknown at the time of writing the program.

These instructions may generated by your program or may be in an external text file.

In such cases you have to ask Logo to run these instructions by saying run.

	run :mycommands
Of course, instead of a variable or expression you can use a list, but in this way both next line will have the same effect:
	run [print :x :y]
	print :x :y
The instruction run serves another purpose too.

If instead of a list of instructions it finds a word, then it will use this word as a name of a file and will look for instructions in it.
	run "vectors
The example above will ask Logo to find file vectors.eli, to load it and to learn from it as much as it is possible.

Examples:

References:

ob Controlling program flow