Did you add the third ENDIF at the end after commenting out the first?

And this code editor really helps in this situation
http://www.picbasic.co.uk/forum/cont...75-FineLineIDE