Posted 19 December 2013 - 10:22 AM
Hey
Im trying to code a basic Manual Database on a computer and I was trying to incorporate a search system.
This is the code:
– Search function
function searchName()
write("Search Name")
local input = read("*")
if local = name then – name is a global variable
displayEntry(name) – a seperate function
end
end
It then gives the error:
I know that this means it is expecting a then in line 7.
But as you have seen I HAVE put a 'then' in line 7 so …
Whats going on and what should I do ?
Please respond quickly
Tarado :D/>
Im trying to code a basic Manual Database on a computer and I was trying to incorporate a search system.
This is the code:
Spoiler
…– Search function
function searchName()
write("Search Name")
local input = read("*")
if local = name then – name is a global variable
displayEntry(name) – a seperate function
end
end
It then gives the error:
Spoiler
bios:337: [string "DBStorage"]:7: 'then' expectedBut as you have seen I HAVE put a 'then' in line 7 so …
Whats going on and what should I do ?
Please respond quickly
Tarado :D/>