Page 1 of 1

Time condition

Posted: 20 Nov 2012, 07:08
by zer11
Hello,
I need a time condition which does not care about the Day/month/year.
I want to check whether its 6:30 - 7:10 and if its not that time X Y happens.
But there is no way to use it that way.
Or mb there is a way to take the current day?
Greetings

Re: Time condition

Posted: 23 Nov 2012, 09:45
by Jmgr
Hi,

This could be done with the Code action and some Javascript.
To get the current day :

Code: Select all

var now = new Date();
Console.print(now.getDay())
(monday = 1, etc.)
To jump to a line of the script :

Code: Select all

Script.nextLine = 42