Have a loop run for X amount of time

Hey,

Think I have a working product for what I wanted. Whew! Thanks all for the help.

if(EVAL == HIGH) 
  {
     unsigned long Time = millis();
     
     while(millis() <  Time + 10000) 
    {
            
       digitalWrite(ELED, HIGH);
       digitalWrite(FLED, LOW);

After 10 seconds it goes back to flashing mode, which is exactly what I wanted.

thanks!