Hi BrEgOrS (that takes some typing),
Check your logic there mate, it looks to me like it will end the loop after the first element is processed.
It should end the loop when n > elementcount-1.
Check your logic there mate, it looks to me like it will end the loop after the first element is processed.
It should end the loop when n > elementcount-1.