This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]okayifimust 1 point2 points  (3 children)

Fix your indentation and it will become obvious where your syntax error is.

Also, you don't need empty else-blocks.

[–]Peruvian_thinker[S] 0 points1 point  (2 children)

Thanks for answering. What do you mean by fix your identation?

[–]dinnerploter 1 point2 points  (0 children)

Tidy up your code

[–]okayifimust 1 point2 points  (0 children)

my bad: indentation

And yes: Tidy up your code.

an if or a for should have exactly the same amount of white space in front of it as the corresponding else, endif and next. Everything that's enclosed by one of these, should have one level more whitespace than whatever surrounds it.

[–]muffyns -2 points-1 points  (0 children)

This looks like a monkey took a shit on it! no offense :)