Correct - I just noticed my byvar code is backwards plus I'm not getting a true result back from strcomp
That has been added, but don't know if it'll make this release whenever it does get released..
I'll wait for the update since I can't get it to work and I was hoping to use something similar for setting images elsewhere in the skin. It looks like I'm not getting the variable ISNA set to something. If I set a label to "$ISNA$" I get no status and it seems the ByVar command defaults to TRUE. This was the code I was using
LOAD;WEATHER_DETAIL.SKIN||SETVAR;DAYHI;w_0day_hi|| EVAL;ISNA;strcomp("N/A";"$DAYHI$")||BYVAR;ISNA;SETVAR;W0ICON;w0nightico n<<SETVAR;W0ICON;w0dayicon",
I put label commands for $DAYHI$ amd $ISNA$ and only DAYHI is showing with a temp value (75) on my weather_detail.skin. ISNA shows nothing.
Here is not only a working code, but also takes into account F & C temp labels :D Part of the problem was that the "w_0day_hi" label also appends the correct temp format to the "N/A" and causing all the codes above to not work correctly, to which I have to adj the PI's code as i too just noticed this...
I moved the load the end of the cmd so that when the screen is loaded the weather icon's var is already set to use the correct image. This is of course assuming that your coming from the weather screen or issued a "relaodweather" cmd before hand to populate the "w_0day_hi" label..
"Weather_5Day","EVAL;ISINTL;strcomp("USA";"$weatherunits$")||BYVAR;ISINTL;SETVAR;N/AFC;N/A C<<SETVAR;N/AFC;N/A F||SETVARBYCODE;DAYHI;w_0day_hi||EVAL;ISNA;strcomp("$N/AFC$";"$DAYHI$")||BYVAR;ISNA;SETVAR;W0ICON;w0dayicon<<SETVAR;W0ICON;w0nighticon||LOAD;WEATHER_DETAIL.SKIN"
Thanks Blue! :wof:. I figured it might be something with the value and even tried a couple other weather items but gave up. I was actually about to go through the old source code to see if I could find the issue.