Kodi Community Forum

Full Version: Issue with skin property and String.Compare
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
can you make a label somewhere to test $INFO[Window(home.Property(service.Test1)] to be sure that it is actually set to on?
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
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>
Thank you all. I'm on Krypton and as Angelinas suggested my syntax was wrong. Now it's working. Thanks a lot.