Error code is "bios:339: [string "test"]:23: '<eof>' expected
Until the else/if statement the program runs fine I've moved the last end around by tabbing it over, removing it, and removing the previous end, adding a second end after the last one. I can't figure out at this point what the error is. Please help. There is a section of code in front that assigns the variables, just didn't want to write out that much code.
I've checked a lot of forums but can't find the an answer that fixes the error.
Code:
if pt == (p) then
print ("Loggin In..")
sleep(2)
print("Login succesful!")
sleep(1)
print("Welcome user")
sleep(2)
term.clear()
print("Starting OS")
sleep(4)
term.clear()
print(" Welcome to HQ Terminal 1 ")
print("============================")
end
else if pt == "admin" then
term.clear()
write("Admin Mode")
end
Until the else/if statement the program runs fine I've moved the last end around by tabbing it over, removing it, and removing the previous end, adding a second end after the last one. I can't figure out at this point what the error is. Please help. There is a section of code in front that assigns the variables, just didn't want to write out that much code.
I've checked a lot of forums but can't find the an answer that fixes the error.