EXIT FOR - QB64Official/qb64 GitHub Wiki
The EXIT FOR statement allows a condition other than the counter value to exit a FOR...NEXT loop.
Syntax
EXIT FOR...NEXT
- Used with a conditional statement to exit a FOR counter loop early.
The EXIT FOR statement allows a condition other than the counter value to exit a FOR...NEXT loop.
EXIT FOR...NEXT