QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.
The EXIT DO statement can be used to exit a DO…LOOP from inside of the loop.
Syntax
EXIT DO
Used to exit a DO loop when a condition exists regardless of any loop conditions.