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 4 made on Thursday April 2, 2020 at 05:25
Fischi
Long Time Member
Joined:
Posts:
January 2011
114
On April 1, 2020 at 19:00, Lyndel McGee said...
You really did not fix it if you used "==" in
{w.label == "_";}
the above statement is actually not an assignment to the label but instead just evaluating the condition which reports true if the label of the widget matches "-"

Hoping this is just copy/paste or retype error on your part.

A better approach along to set the label to "-" if timer is not numeric is:

if (isNaN(hallLightsTimer)) {w.label ="-";}

[Link: w3schools.com]

Thanks Lyndel for the tip with isNaN.
I learned something again !

{w.label == "-";} ... it was a copy and paste mistake
{w.label = "-";} is right!

Regards, Fischi

Last edited by Fischi on April 2, 2020 11:25.


Hosting Services by ipHouse