locking topic
I don't know if you crossed that out because you unlocked or, or because you remembered you shouldn't. But know that you shouldn't lock threads in coding help just because the question has been answered. Someone may have a better solution or see an issue with the "solution" but they can't give it to you if it's locked.
and there is a syntax error somewhere, but i cant find it
I don't know how much you tried, but the error report gives you a line number (most text editors allow your to press ctrl+G to go to a certain line) and a general location of the error, you should practice finding and fixing the error yourself.
Also, I don't know what you have now, but in the code in
this post, you can get rid of either the return or the else