What would be the syntax for a numeric range in an if-statement?

I want to print out a text saying good morning between 5 and 10 am, but I can't get the syntax in the condition to work. I get an error after using '&' like this: $if(df(hh) >=5 & <11... Can someone tell me the correct syntax for a condition like this?

When you use the &(and) or |(or) option you need to put in the second or third option the if statement complete like

$if(df(hh) >=5 & df(hh) <11.....

Try with this formula, change the time and the words at your like

$if(df(H)<6,sleep,df(H)<12,morning,df(H)<17,afternoon,df(H)<20,evening,night)$

That makes sense! Thanks for the quick response and simple explanation :)

😁👍