local UserList = {"Jewel", "Tester"}
local PassList = {"Neopet", "Bacon"}
rednet.open("top")
while true do
local ID, User, Security = rednet.receive()
for i=1, 2 do
local check = UserList[i]
if check == User then
local check2 = PassList[i]
if check == User and check2 == Security then
local UserCheck = true
break
else
local UserCheck = false
end
end
end
sleep(1)
if UserCheck == true then
rednet.send(ID, "Clear")
else
rednet.send(ID, "Invalid Username or Password")
end
end
Can somebody help me understand what is going wrong here? It always returns false for me.












