Post Reply 
REPEAT . . . UNTIL loop problem
02-14-2021, 07:46 PM
Post: #8
RE: REPEAT . . . UNTIL loop problem
(02-14-2021 01:24 AM)toml_12953 Wrote:  This works for me. Are you sure you have exit:=1 in a proper conditional?

Code:

EXPORT TESTEX()
BEGIN

LOCAL y:=0,exit:=0;

REPEAT
  print(y);
  y:=y+1;
  IF y==7 THEN
    exit:=1;
  END;  // If you leave this out, you'll get an error on the UNTIL statement.
UNTIL exit==1;

END;

Dear Tom L.,
Yes, I have the command 'exit:=1;' placed in a correct conditional. The error this thread is about has only recently occurred, before that, the program worked fine. Sincerely, Karel.

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
REPEAT . . . UNTIL loop problem - cahlucas - 02-13-2021, 10:50 PM
RE: REPEAT . . . UNTIL loop problem - cahlucas - 02-14-2021 07:46 PM
RE: REPEAT . . . UNTIL loop problem - jte - 01-20-2023, 02:57 AM



User(s) browsing this thread: 10 Guest(s)