HP Forums

Full Version: Loop Forever?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In ISO BASIC, there's a way to loop forever (you can always EXIT a loop from within)
Code:

DO
  <code goes here>
LOOP

Is there a way to do that on Prime?

Right now I have this which seems very clumsy:
Code:

REPEAT
  <code goes here>
UNTIL 1≠1;

Tom L
You can do:
Code:
REPEAT
  <code goes here>
UNTIL 0;
or
Code:
WHILE 1 DO
  <code goes here>
END;
For me,
Code:
WHILE 1 DO
  <your code goes here>
END;
has been something of a standard way to get that done.

smp
Reference URL's