Yep. I was hoping there'd be something at the end to make it simple :p
Guess not. Now would be the time you put the script in a .zip or .txt format and attach it to a post, filn. 🙂
EDIT: Prior to doing so, however, you should read over your if-else statements to see if you perhaps forgot an ending brace or whatnot.
In some editors, if you click on a brace it will highligh it's mate (i.e. click on '}' and it shows you the matching '{'. Notepad2, a handy replacement for Notepad, does this.)
If not, I have a simple trick. For every '{' I raise one finger, and for every '}' I take away one finger. So, if you have:
if(something == something) {
if(nothing != something) {
you would have 2 fingers raised. This is rather time-consuming and looks odd if you're sitting there going back and forth, raising/lowering fingers :p It's best to get a nice editor that highlights matching braces for you. If you run out of fingers/don't end with exactly no fingers raised, you have an unpaired brace! Not good!