Re: bgt, array for loop skips indexes
Hi,
@3 is correct. I will just add, that you might also like to use
continue;
After decreasing your loop variable, in this case i. It's because after removing the item and dealing with the index, it makes no longer sense to run the loop's iteration aimed to process an item, when that item no longer exists. So continue will stop the iteration and launch nextone. Without it, if there were more conditional operations in the loop, you might end up with processing one item twice.
Best regards
Rastislav
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector