Switching a relay on and off using "millis()" without interfering with the runtime of the other piece of code

The compilation error is as follows.

void relay( void ) 
{
    uint8_t
        **stateRelay = RLY_OFF;**
    static uint32_t
        timeRelay;

"RLY_OFF" was not declared in this scope