This was the cause of a warning so I've gone ahead and fixed the syntax as well as made the syntax the same for the while and for loops.