Time condition

Post here if you need help using Actiona
Post Reply
zer11
Posts: 10
Joined: 07 Mar 2012, 14:20

Time condition

Post 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
User avatar
Jmgr
Admin
Posts: 1649
Joined: 07 Dec 2005, 15:45
Contact:

Re: Time condition

Post 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
"My software never has bugs. It just develops random features."
Post Reply