Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 2 made on Wednesday April 1, 2020 at 12:30
Fischi
Long Time Member
Joined:
Posts:
January 2011
114
I‘ve solved it :

var w, hallLightsTimer;
w = widget("REMAINING");
w.label = hallLightsTimer ;
if (hallLightsTimer === undefined) {w.label == "-";}

if( hallLightsTimer > 0 )
{
hallLightsTimer--;
if( hallLightsTimer == 0 )
page("IRCODES").widget("HALL_LIGHTS_OFF").executeActions();
}

It looks a little bit nicer than „undefined“


Hosting Services by ipHouse