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

[Error,Help] "= is expected on line 29" but there is an end command there. How would i insert the "=" sign?

Started by CommadoreTheCyborgPony, 24 November 2012 - 02:28 AM
CommadoreTheCyborgPony #1
Posted 24 November 2012 - 03:28 AM
Pretty much the title, i have triedd to insert the = sign in any way i could thintk of, but the program ether says "unexpected symbol" or continues to say "= is expected".
1lann #2
Posted 24 November 2012 - 04:27 AM
Sorry but we can't read your mind and know what your code is. Mind to post your code?
remiX #3
Posted 24 November 2012 - 05:11 AM
This could mean that you made a mistake with an if like this:
if x = y then
--instead of
if x == y then
Another reason is I think if you forget a bracket of a function? Can't really remember but the ^ if statement is the main irritation. If you still can't find it, you will need to supply your code.
Doyle3694 #4
Posted 24 November 2012 - 05:16 AM
if statements will return "then expected" on single =. Your problem is on line 28, the line before 29, you have forgot a pair of ()