SyntaxFix
Write A Post
Hire A Developer
Questions
From your statement, it seems like you merely want to write:
if (10 >= hh && hh < 18) { ... }
This is trivial if you are given the hours already. But surely you are asking something else?