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 66 made on Friday November 29, 2013 at 12:15
ScottGrimes
Long Time Member
Joined:
Posts:
April 2007
78
On November 29, 2013 at 10:18, Lyndel McGee said...
Did you try

if (weatherData.dayf.day[0].part.length > 1)
// 2 elements and element 0 is day, element 1 is night
else
// 1 element and element 0 is night

Just tried it. Length does not seem to come back as any value. I used System.print to display the value 'weatherData.dayf.day[0].part.length' and... nothing.

Any other thoughts?
 
Scott Grimes
Liquid Designs
[email protected]


Hosting Services by ipHouse