After re-reading the code, my previous statement was incorrect:
Quote Originally Posted by SteveB
This eliminates the xorwf INDF1, F statement, so not a great idea.
the xorwf falls just after the if..else..endif statement, otherwise when you deleted the whole else portion it would not have worked.