make
Help Contents
First Steps In Logo
Built-in instructions
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:
Pythagoras (advanced)(112), colors(90), Projection (3d advanced)(84), Hanoi (3d Towers of Hanoi solver)(71), Floor_map (one 3d storey of a house)(62), Walker (advanced 3d)(62), Flying Turtles (3d)(51), triFrac (3d)(50), Icosahedron (3d)(45), Polyhedra-fractals (3d fractal)(39), ZoomRotate(39), Cubic (3d fractal)(35), House (3d)(35), fly(35), turtle3D(30), DNA (3d)(28), Nurbs (3d)(28), Rose (3d)(28), Bojo-Triangle (advanced)(27), Bojo-triangle-inscribed (advanced)(27), SketchPad (advanched)(24), turtle(24), Heart(23), Reflection(23), Ryzhik (geometry)(22), Honey (3d)(21), Integral (simple 3d)(19), isec_circlecircle(17), Fern (3d)(15), TriCircles (simple)(14), Creatures (multiple inheritance)(12), Default label offset and object colors(12), Strophoid (simple)(12), polygon(12), turtle3D.left(12), turtle3D.rightroll(12), turtle3D.uppitch(12), Citadel Problem(11), Long-dynamic-vars (text)(11), Mousedraw (simple)(10), label(10), isec_linecircle(9), How to say variables(8), ellipse(8), forward(8), hyperbola(8), onchange (simple)(8), parabola(8), CatDog (simple)(7), Example use of oninteractive(7), Point-vector arithmetic operators(7), SineCosine (simple)(7), Archimedic Spiral (simple)(6), Arithmetic operators(5), ClipCube (simple 3d)(5), Mouse (simple)(5), angle(5), geomex(5), home(5), readword(5), segment(5), sminus(5), ssection(5), triangle(5), vector(5), Comparsion operators(4), Turn left, turn right (lt, rt )(4), circle(4), csc(4), labeled(4), line(4), local(4), nurbs(4), onaftermake (debugging)(4), ray(4), restore(4), rgb_(4), rotation(4), setxy(4), sunion(4), turtle3D.forward(4), Data for interactive mode(3), I don't want it all. I need just a bit of it. ( first, last, bf, bl, item )(3), Oxy(3), always_rotate(3), fog(3), image(3), lookat(3), onbeforedraw(3), point(3), put_heading(3), put_length(3), wait(3), Defining actions(2), How to say comments(2), Introduction(2), List-based sets (2), Pascal-Assignment (simple)(2), Recognizing Words(2), SinCos(2), bl(2), button(2), byValue-byName (simple)(2), checkbox(2), clrdr(2), cone(2), cscx(2), cscy(2), distance(2), font(2), fput(2), graphix.circle(2), graphix.ellipse(2), graphix.hyperbola(2), graphix.parabola(2), graphix.subellipse(2), isec_lineline(2), label_position(2), labelbox(2), left(2), listbox(2), lput(2), memo(2), not(2), pendown(2), penup(2), picbutton(2), readkey(2), repeat(2), right(2), scale(2), styled(2), textbox.(2), traced(2), traces(2), Butterfly (simple), Dancing turtle ( fd, bk ), How to say actions, I need to construct ( word, list, se, set, fput, lput ), Mathematical functions (guide), and, aqua, backspace, bf, black, blue, clearkey, color, cube, cutcone, cylinder, dkgrey, escape, fact (Factorial Operator, simple recursion), first, fuchsia, graphix.line, graphix.point, graphix.ray, graphix.segment, graphix.text, green, grey, hide, idiv, if, imod, isec, last, lime, locus, ltgrey, maroon, member, memberP, navy, ob, olive, or, paralelogram, pi, purple, put_absc, put_center, put_final, put_initial, put_ord, put_radius, readkeyP, rectangle, red, return, rotationc, rotations, setx, sety, show, silver, space, sphere, square, suptype, teal, text, turtle3D.f, turtle3D.p, turtle3D.r, turtle3D.u, userbit.definition, userbit.domain, userbit.hidden, userbit.historical, userbit.lock, userbit.syntax, userbit.trace, white, yellow