Posted 26 June 2012 - 10:29 AM
Hi I know I'm new on the forum, but I've tried to find the code I'm looking for without any result.
To make it shot, I'm trying to make a multi-menu with a return to main menu possibilities.
The problem is, I'm trying to make a "return" to the main menu after all my action's done, But I just don't find anything to do that.
So, if anyone has an Idea please let my know.
thx
To make it shot, I'm trying to make a multi-menu with a return to main menu possibilities.
--mai menu
term.setCursorPos(16,1)
print ("Menu ")
term.setCursorPos(1,5)
print ("choice 1: 1")
print ("")
print ("choice 2 : 2")
print ("")
print ("choice 3 : 3")
print ("")
print ("choice : 4")
print ("")
write ("choice : ")
local choice = read ()
if choice == "1"
then
action
aciton
aciton
[b]automatic return to main menu[/b]
The problem is, I'm trying to make a "return" to the main menu after all my action's done, But I just don't find anything to do that.
So, if anyone has an Idea please let my know.
thx