Turtle and Observer Command

let [:variable value]

Declares variable as a local variable and assigns value to it. All local variables must have names which begin with a colon. You may declare more than one variable in a let statement (ie. let [:variable1 value1 :variable2 value2]. Variables are declared in the order they appear in the let statement. See the Variables page for more information on local variables.

Examples:
let [:myvar 6] declares a local variable :myvar and assigns its value to 6.

Related commands: globals