Kodi Community Forum

Full Version: Cant get visible condition to work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
depends on which kodi version you're using.
(2016-08-03, 22:01)ronie Wrote: [ -> ]depends on which kodi version you're using.

16.1
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()
Plus be careful when omitting the window id in the window properties, especially when using different dialogs.