You could do what you propose, making the comparison to a variable hour based on the contents of V1000.
To enter a constant amount as you wished, and it can only be on the right side of one of these comparison instructions, enter a letter 'K' then the number - e.g K12 (it comes from the German spelling of 'constant'.