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

bios:367: [string "startup"]:71: 'then' expected PLEASE HELP!

Started by MeinByte, 11 April 2015 - 02:10 PM
MeinByte #1
Posted 11 April 2015 - 04:10 PM
Hello, I need your help.

I've written a startup programm but there's always this error. I don't know what to do :(/>

Thanks for your answeres

MeinByte

PS: I'm sorry for my bad English ;)/>
Lyqyd #2
Posted 11 April 2015 - 06:09 PM
Moved to Ask a Pro.

Well, the first thing to do is to post the code.
minebuild02 #3
Posted 11 April 2015 - 06:29 PM
Put it on Pastebin, then post the link here.
Square789 #4
Posted 11 April 2015 - 08:08 PM
Then expected means that you didn't form an if-structure correctly.
Without the code, i only can tell you that you didn't close an if structure

if greeting == "Hello"
	 print("Hello too!")
end

or used "=" instead of "=="


--#WRONG:
if greeting = "Hello" then
	print("Hello too!")
end
--#CORRECT:
if greeting == "Hello" then --#You see the double equalation signs
	print("Hello too!")
end
But please post your code so we can help you much better ;)/>
Edited on 11 April 2015 - 06:09 PM
MeinByte #5
Posted 12 April 2015 - 10:34 AM

--#WRONG:
if greeting = "Hello" then
	print("Hello too!")
end
--#CORRECT:
if greeting == "Hello" then --#You see the double equalation signs
	print("Hello too!")
end

This helps me. Thanks a lot ;)/>