Posted 21 October 2012 - 06:50 PM
ok so im working my way through a program that labels a disk for you from scratch. i know this is pointless but im testing for what i can do. anyway so far i have made it check if the disk is present. but its always returning false. can someone help me out?
Heres my code
-Cheeky
Heres my code
write("Enter Drive Side: ")
a = io.read()
if a == "top" or a == "bottom" or a == "left" or a == "right" or a == "front" or a == "back" then
disk.isPresent(a)
if disk.isPresent(a) == "true" then
print("true")
else
print("false")
end
end
this is always printing false when a disk is present? can someone help me out here? thanks -Cheeky