I understand, I thought about that. How can I stay in that condition under a certain amount of time. If that limit is reached then the code needs to move on to the next part.
The Blink Without Delay uses an if statement to check if it has been a certain time. Using a while instead will cause the code to get "stuck" in that part of the code until the condition is no longer met.