|
|
|
repeat
The other instruction for program flow control is repeat. You can use to ask Logo to repeat a sequence in instructions several times. The following instruction:
repeat 5 [print "Hello]is functionally equivalent to:
print "Hello print "Hello print "Hello print "Hello print "HelloOf course if you want to repeat an action thousands of times, then it would be quite efficient to use repeat.
make "i 65 repeat :chars [ print char :i make "i :i+1 ] |
|
|
|