08-12-2023, 12:18 PM
do {} while in C or Java is like:
in QuickBASIC, Commodore-128 BASIC, QB64 and many many others.
There is no other counterpart to REPEAT... UNTIL like Lua and Pascal. Without "LOOP UNTIL (condition)" you must use NOT like a function if you have a big condition but you need to break out of the loop if that condition is false.
Code: (Select All)
DO
:
LOOP WHILE (condition)
in QuickBASIC, Commodore-128 BASIC, QB64 and many many others.
There is no other counterpart to REPEAT... UNTIL like Lua and Pascal. Without "LOOP UNTIL (condition)" you must use NOT like a function if you have a big condition but you need to break out of the loop if that condition is false.