In my experience the use of multiple IF...THEN slows my 40 MHz PIC down to pure uselessness...
you can't be doing it the right way