If statement stoping a loop

The issue that happens when I try that change is that no player is ever added to the array.

1 Like