Quote Originally Posted by SteveB
After re-reading the code, my previous statement was incorrect:

the xorwf falls just after the if..else..endif statement, otherwise when you deleted the whole else portion it would not have worked.
Yeah, I didn't delete that part.

Thanks for the help!