[LUA]How do i make a program loop?
Started by KingMinecrafter, Dec 06 2012 03:37 AM
2 replies to this topic
#1
Posted 06 December 2012 - 03:37 AM
Hi! i want to make my program loop, i have done so it is in startup on my main computer so i can acces it easily, but i want it to loop. it is a program that sends a message to a turtle to turn on the lights and open the door but i always have to type in reboot or startup agian before i can type another command, i want to make it so i can type commands non stop until i exit it manually. not just one command and it exits itself. please help
i am very new to this.
#2
Posted 06 December 2012 - 04:00 AM
Infinite loops are usually best done with while true do.
while true do -- stuff end
#3
Posted 06 December 2012 - 04:05 AM
thanks! it worked
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











