Cant get visible condition to work
#1
Trying for an image to show up depending on a window property
(I set a label control to property ShowFront, just so im sure its true)

Tried these: (And some weirder ones), but cant seem to get it to work
Code:
<visible>StringContains(Window().Property(showFront), true)</visible>

<visible>String.IsEqual(Window().Property(showFront), true)</visible>

<visible>Window().Property(showFront)</visible>

What am I doing wrong?
Reply
#2
depends on which kodi version you're using.
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
#3
(2016-08-03, 22:01)ronie Wrote: depends on which kodi version you're using.

16.1
Reply
#4
comparing a string against 'true' doesn't work in kodi 16.x
this bug was fixed in v17

furthermore, String.IsEqual() / String.Contains() are also v17 only.
in v16 you can use StringCompare()
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
#5
Plus be careful when omitting the window id in the window properties, especially when using different dialogs.
Reply

Logout Mark Read Team Forum Stats Members Help
Cant get visible condition to work0