That may be sloppy however that code was there from the beginning when things worked. I can't use the IF...THEN...ENDIF in the basic version nor the IF...THEN... COMMAND in basic. Must be a label as it is just a glorified GOTO statement in basic.

That whole routine is being called from a gosub near the beginning so actually the return is valid. It just happens to be at the end of an IF...THEN statement within the subroutine. Not illegal. When it executes there is just one subroutine called and one return.

Remember, the pbc is very crippled when it comes to standard commands that should be included such as IF...THEN...ELSE and IF...THEN...ENDIF. Makes for sloppy programming to have to work around this limit.

I'm still thinking fried chip.

Bart