thanks for all the advice. no more warnings from the compiler and I have switched to logical operator. I also found out that my problem wasnt with the funtions at all, it was the contents of the functions. Turns out the code wasnt exactly repetitive in every case so the function would contradict what was happening in the current statement....Thanks again for all the help! -- View this message in context: http://www.nabble.com/-PIC-Having-function-problems-in-MPLAB-t1296436.html#a3469796 Sent from the MicroControllers - PIC forum at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist