Ok thanks -- I'll look at it closer -- at least I know it should work with a minus 1.

I use Micro code studio by the way. Is there another IDE that is straightforward like it is but has a few more features? For example, you can't even comment out a block of code, just individual lines.

Also, I have never really had any experience with simulators. My Picbasic interest sort of peaked 20 years ago (although I still think it's fantastic) and back then simulation was a bad word.

Be nice if they came up with something that could scroll through your code and detect operational errors. ?