04-15-2025, 01:18 PM
(04-14-2025, 01:00 PM)Helium5793 Wrote: Why is i% 6 after it comes out of the for/next loop?This has nothing to do with Basic; it's the same in C. The reason is simple:
I am running QB64e under fedora linux. Not sure how to find the version number, but the installation files all have 12/13/2024 as the date modified on them so it isn't an old version.
The loop is executed until it detects that the final count will be exceeded on a subsequent iteration. However, the counter variable "i" contains the last value, which in this case is "6."
![[Image: For-Schleife-QB64-C.jpg]](https://i.ibb.co/FSSZb9y/For-Schleife-QB64-C.jpg)