General area when it fits no where else

Moderator: Mmiscool

User avatar
By TrevorGage
#85923 Hi everyone
I've been trying to use Openweather and I have no issues with it and it works grear
My issue is "Sometimes" data is "Not Found" such as this : -

let ret = readopenweather(query,1) ' the 1 means the first item of the list - 0 means the root
let temp_min = json(ret,"temp.min")
Print temp_min
-2.03 (an example return)

However if the data is "not found" it leads to this result

Print temp_min
Not Found

Is there a way to make this not happen

What I'd like is something such as
let ret = readopenweather(query,1) ' the 1 means the first item of the list - 0 means the root
let temp_min = json(ret,"temp.min") ' get the temp
if temp_min = "Not Found" then 'data not available
temp_min = " x" temp_min = x or a space or whatever characters I want to put there

I've tried this many ways but I cannot get it to work

Anyone got any suggestions on how to make it work
thankyou