Posted 31 January 2014 - 03:56 PM
Hi I am having a lot of trouble with this one in particular program, I have been trying for over a week to get it to work but I still cannot get it. here is the code
function N()
term.clear()
print("Installation Canceled")
sleep(5)
term.clear()
term.setCursorPos(1, 1)
print("BallOS v1,4")
term.setCursorPos(1, 2)
end
function Y()
term.clear()
textutils.slowPrint("Installing..")
sleep(5)
term.clear()
term.setCursorPos(1, 1)
textutils.slowPrint("Please Wait..")
sleep(5)
term.clear()
term.setCursorPos(1, 2)
read()
end
print("Would You Like To Initiate Installation?)
term.setCursorPos(5, 5)
print("Y Or N")
term.setCursorPos(5, 7)
read()
if input == Y then
Y()
else
N()
end
————————————————————————————————————-
With that code no matter what I do even if I type Y it does the N() function
function N()
term.clear()
print("Installation Canceled")
sleep(5)
term.clear()
term.setCursorPos(1, 1)
print("BallOS v1,4")
term.setCursorPos(1, 2)
end
function Y()
term.clear()
textutils.slowPrint("Installing..")
sleep(5)
term.clear()
term.setCursorPos(1, 1)
textutils.slowPrint("Please Wait..")
sleep(5)
term.clear()
term.setCursorPos(1, 2)
read()
end
print("Would You Like To Initiate Installation?)
term.setCursorPos(5, 5)
print("Y Or N")
term.setCursorPos(5, 7)
read()
if input == Y then
Y()
else
N()
end
————————————————————————————————————-
With that code no matter what I do even if I type Y it does the N() function