On par with @123outerme 's request, i wrote a small program in JS to count up the ends in and indent ti-basic source code, and say something if there are too many, or an extra one is needed. You can try/use it at https://jsfiddle.net/th4hnpmh/ (Changed to latest version)All the code is here:

The best way to count missing ends is to indent your code, but sadly that is not possible when programming on-calc (it would actually make it harder to read the code, because the screen is so small, plus it would take too much RAM space). I think that such tool was suggested long ago, but I don't remember if it was ever implemented. The only closest thing I can remember was a variable usage detection program, which told you if a variable was in use in your BASIC program.

Also, sometimes loops will not stop prematurely due to missing End instructions, but rather due to a conditional error, such as the > and < signs being inverted as a typo, or variable conflicts.

The best way to count missing ends is to indent your code, but sadly that is not possible when programming on-calc (it would actually make it harder to read the code, because the screen is so small, plus it would take too much RAM space). I think that such tool was suggested long ago, but I don't remember if it was ever implemented. The only closest thing I can remember was a variable usage detection program, which told you if a variable was in use in your BASIC program.

Also, sometimes loops will not stop prematurely due to missing End instructions, but rather due to a conditional error, such as the > and < signs being inverted as a typo, or variable conflicts.

Necro bump You can indent you code with ':', but as you mentioned it wastes space and slows it down.

Nah using : instead of a linebreak actually takes the same amount of space. I don't know if it slows execution down, but it considerably speeds up the time it takes to scroll through the code on color models.

Nah using : instead of a linebreak actually takes the same amount of space. I don't know if it slows execution down, but it considerably speeds up the time it takes to scroll through the code on color models.

The ":" does not work with return statement though, ive had this problem in the Lazer I.Ex:

Anyway war sucks. Just bring us your food instead of missiles :P ~ DJ Omnimaga (11.10.2016 20:21:48)if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._ ~ c4ooo (14.11.2016 22:44:07)If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)