The culprit is condition
Code:
((line = 1) || (line = 10)
You should use == instead of = or else it will assign the value 1.

Offtopic comment:
Also I like the idea of making space into the post but you could have used the code block.