Issue with skin property and String.Compare
#1
I use a python service to populate some properties in the skin. In the python service i use WINDOW.setProperty("service.Test1","off") I have set the window id to 10000.

In the skin i'm able to show the content in a label with $INFO[Window(Home).Property(service.Test1)]

Now i want to show a picture if the content is set to on.

So i have tested with <visible>String.IsEqual($INFO[Window(Home).Property(service.Test1)],on)</visible>
This is not working. I have tested with Substring also. It seems String.IsEqual is always False.

Do oyu have any idea why or do you know another solution?
Reply
#2
can you make a label somewhere to test $INFO[Window(home.Property(service.Test1)] to be sure that it is actually set to on?
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#3
in case you're still using kodi jarvis, it's broken there.
the bug was fixed in krypton: https://github.com/xbmc/xbmc/pull/9228
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
In case, if you using Jarvis, that infobools condition String.IsEqual() never going to work.
http://forum.kodi.tv/showthread.php?tid=...pid2281321

if you didn't on Jarvis, try this
Code:
<visible>String.IsEqual(Window(Home).Property(service.Test1),on)</visible>
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#5
Thank you all. I'm on Krypton and as Angelinas suggested my syntax was wrong. Now it's working. Thanks a lot.
Reply

Logout Mark Read Team Forum Stats Members Help
Issue with skin property and String.Compare0