Need help adding in time variable to make sure bot doesn't work at a certain time

Hi there,

For this specific RPA that I’m building, I need to ensure that the bot doesn’t work between 2am-6am.

I have an If statement, and my condition is Now(); but I’m not sure if this is the correct way of doing this.

Any help is appreciated :smiley:

Hey @dylanTana

Yep that’s right !

Now.Hour < 2 AndAlso Now.Hour > 6

Only if the above condition is satisfied we will proceed for execution !

Hope that helps.


1 Like

@Nithinkrishna thank you SO much!

1 Like

Cool buddy :slightly_smiling_face::+1:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.