HP Forums
Emu48 Indefinite Loops - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Emu48 Indefinite Loops (/thread-18183.html)



Emu48 Indefinite Loops - MNH - 03-27-2022 06:25 PM

When using indefinite loops, is there a logical way to end the loop before it executes one more time? Take a WHILE loop for example. I have a string that contains two line feed characters. The third line has no line feed character because no line proceeds it. My test condition is the value of POS when searching for the position of a line feed character. While POS isn't zero the loop continues. My program fails because the loop executes one more time, and there's no starting position for the final SUB. Any thoughts?


RE: Emu48 Indefinite Loops - Eric Rechlin - 03-27-2022 10:22 PM

This is not an Emu48 question. Specify which calculator you are emulating and ask the question in the General forum, please.