@9142...
Concerning the conditional stuff, it's easy (on the small scale we see here...) if one goes through asking the question in the place of the machine. Taking your code, and supposing an 'Hour' value of 16 (just for illustration...), we see...
Is Hour Greater or Equal To 19..?
Answer: No, so no Tint.1
Is Hour Greater or Equal To 5..?
Answer: Yes, so Tint 2..!
Is Hour Greater or Equal To 8..?
Answer: Yes, so Tint 3..!
Is Hour Greater or Equal To 16..?
Answer: Yes, so Tint 4
As we can see, the Tints 2 and 3 have been applied, to be finally over-ridden by Tint 4. How to prevent this..?
Firstly, by having the tests in the order of magnitude, then by having each test dependant upon the preceding test, like this...
Spoiler
Is Hour Greater or Equal To 19..?
Yes, Tint 1
Else
Is Hour Greater or Equal To 16..?
Yes, Tint 2
Else
Is Hour Greater or Equal To 8..?
Yes, Tint 3
Else
Is Hour Greater or Equal To 5..?
Tint 4
End
End
End
End
In this structure, with Hour value of 16 again, once we reach the second test, the following tests are not executed. Once a test is satisfied, the others are no longer relevant.
One remark... what happens when Hour has a value of 2..? This case would cause all of the tests to fail. I would suggest a 'fail-safe' 'else' to come after the 'Greater or Equal To 5' such that any other value gives Tint 1 (ie: the 'Night' Tint...). This would look like...
Spoiler
...
Else
Is Hour Greater or Equal To 5..?
Tint 4
Else
Tint 1
End
End
End
End
Try this out on a dummy Project to see how it responds to your needs; read through again if all is not clear or come back with questions
Hope this helps.