This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Marra1996's profile picture

repeating a command

Started by Marra1996, 29 February 2012 - 03:34 PM
Marra1996 #1
Posted 29 February 2012 - 04:34 PM
Hello there!
I got a litle question (once more):
can i somehow make a turtle repeat a command like 50 times or something?
I want it to dig a shaft for me, but i dont want to type the command in 50 times.
Liraal #2
Posted 29 February 2012 - 04:35 PM
for i=1, numberofrepeats, 1 do
command
end