RE: help using if statement in MPLAB
I suggest you to have a look at the instruction-set section of the datasheet, and use ONLY these instructions to code your project. At least the first one.
If after that you want to use advanced options of the assembler as directives, macros, linker, etc. they can save you a lot of time. But I recommend you to start with the basics and get the picture of the system at its lowest level. Go a step each time, you'll learn better than trying to do it all the first time.
Hope this helps,