Nextion Intelligent to power saving mode according to the given time and then switching on

Hey,

I need some advice. I have a script ready for time saving mode. Unfortunately it only works for the off time, but when I tried the on time the action didn’t take place. Do you know where the error could be?

Thank you in advance for the information.

// If the current time is greater than the off time and less than the on time
if(rtc3.>= 22 || rtc3.<6)
{
dim=0 // brightness is set to 0
sleep=1 // turn off the display
}
else
{
dim=100 // set brightness to 100
sleep=0 // turn on the display
}

Have you defined the variable as time?