
Lua
By: a guest on
May 12th, 2012 | syntax:
Lua | size: 0.45 KB | hits: 18 | expires: Never
function clear()
term.clear()
term.setCursorPos(1,1)
end
funtion Input()
clear()
write"Name: "
name = read()
clear()
write"Age: "
age = read()
clear()
write"Password: "
password = read("x")
end
repeat
clear()
write("Name: "..name.."/nAge: "..age.."/n/nIs this correct? (Yes/No)"
ans = read()
until ans == "Yes" or ans == "No"
if ans == "Yes" then
clear()
write ("Signup Complete")
elseif ans == "No" then
Input()
end