ENDIF without IF could also be a spaghetti issue of jumping (GOTO) the middle of a loop.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.