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.
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
okay, and with the syntax error, it was a syntax error i was unfamiliar with, but yes i did look thouroughly through the script to look out for one, and the syntax error i did was one i didnt know about