Please let me know that this way (2 pairs of 2 conditions) are possible, or have to use current (first) way. Or maybe you have any other faster/more clear way?
That statement sets hour to 15, it does not compare it to 15
= for assignment
== for comparison
Fix that and 2 (or more) comparisons in an if are possible but take note the test will never return true if hour has to equal 15 in one part of it and 16 in another part of it
Ah, I got caught out by following a "related post" link, they are usually completely out of date. My (point about) readability (still) stands, reduce clutter...