Sometimes the JSON returned doesn't contain the wind/deg element so thought I could try and catch this like this:
try
{
windd = degtocompass(data["wind"]["deg"]);
}
catch( ex )
{
windd = "?";
}
But I still get Failed invoking <symbol> Unexpected Type Error. Is there a good way to see if that element actually exists?
Ta