How to compare two integers?

Hi, i try to compare two integers.

I have to run a part of a script if the current time is later than 11pm and i do i that way:

Variable "DatumStunde" is set with "GetDateTime" and "hh" so its "08" for example. Then i use "If DatumStunde > 22"... and there is the problem, because its true for automise. So how can i solve that, please?

Greetings

NB

Try using a Set Variable action (on the DatumStunde variable with the “Use existing value” checkbox) before the compare and force the type to integer.

Thank you for the very fast help.

I have done it now with a script on the AfterAction of GetDateTime "DatumStunde".

if DatumStunde > 22 then DatumStundeOK = True

it works now but thank you anyway.

regards

NB