HP Forums

Full Version: Emu48 Indefinite Loops
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
This is not an Emu48 question. Specify which calculator you are emulating and ask the question in the General forum, please.
Reference URL's