Page 1 of 1
ifcondition one current time
Posted: November 14th, 2017, 4:08 pm
by janoot
Hello,
I am looking for a way to "check if the time is x". For example:
Code: Select all
IfCondition=(Time = 16:00)
IfTrueAction=[...]
But honestly I have no idea how the units for the Measure=Time work..
Anyone who knows?
Re: ifcondition one current time
Posted: November 14th, 2017, 4:28 pm
by balala
Use distinct measures for hour and minute. Eg:
Code: Select all
[MeasureHour]
Measure=Time
Format=%H
[MeasureMinute]
Measure=Time
Format=%M
Then add the IfCondition to any of these measures, checking the hour and minute condition separately:
Code: Select all
[MeasureMinute]
...
IfCondition=((MeasureHour=16)&&(MeasureMinute=00))
IfTrueAction=[...]
Re: ifcondition one current time
Posted: November 14th, 2017, 5:36 pm
by janoot
Great, thank you!
Re: ifcondition one current time
Posted: November 14th, 2017, 5:58 pm
by balala
Glad to help.