Function to run only once

Sorry I forgot to mention. I am modifying an existing Blynk project.

Can you please have a look at this code once please.

This is the part of the code tnat am trying to modiy. There is no dedicated button to turn the relays on.

Once the schedule occurs the relays must work as i said earlier.
Yes i have a void relayon () as global .