This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SNWLeader's profile picture

Unexpected symbol for if does not equal code.

Started by SNWLeader, 21 September 2012 - 12:32 AM
SNWLeader #1
Posted 21 September 2012 - 02:32 AM
I am trying to get rid of this error i do not understand what I am having error with.
the exact error i get is bios:206:["fprompt"]:14: unexpected symbol



term.clear()
term.setCursorPos(1,1)
print("COM API 1.0")
print("Available Commands")
print("Current List Unavailable")
write("Command:  ")
input = read()
if input == "filter" then
shell.run "Filter_Prompt"
end
if input ~= "filter" or if input ~= "lights" or if input ~= "cancel" then
term.clear()
term.setCursorPos(1,1)
print ("Command Not Available")
end
Tertiary #2
Posted 21 September 2012 - 02:56 AM
Line 11 should only have one "if" on it; each "or if" should just be "or".
SNWLeader #3
Posted 22 September 2012 - 05:17 PM
I have fixed the issue. Thanks for your help :P/>/>