Conditional visibility for stringcompare
#1
Hi all,

Apologies if this is a ridiculously simple question.

I'm attempting to set the visibility of a control group based on a property which a script I have running in the background has set. I'm having literally zero luck with getting this to do anything remotely logical.

Original plan, check the NewEpisodes property, if it's yes then display, else don't.
Code:
<visible>stringcompare(Window(10000).Property(NewEpisodes),YES)</visible>

This didn't work, so I attempted with quotes:
Code:
<visible>stringcompare(Window(10000).Property(NewEpisodes),"YES")</visible>

Then I tried to see if stringcompare does anything:
Code:
<visible>stringcompare(YES,YES)</visible>
<visible>stringcompare("YES","YES")</visible>
<visible>stringcompare("NO","YES")</visible>
<visible>stringcompare(NO,YES)</visible>

All of the above statements result in my control group being displayed.

Can anyone point out where I'm going wrong? I can see stringcompare used to control visibilty all over the place in every skin I have installed, but it simply doesn't work for me, regardless of what I compare, or what i'm controlling.

Thanks
Reply
#2
Did you try substring?

This is from "The Carmichael" where I use to check if a show is airing today?
Quote:<label fallback="-">$INFO[Window(Home).Property(NextAired.1.NextTitle)]</label>
<visible>substring(Window(Home).Property(NextAired.1.Today),true)</visible>
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#3
I have now, and that seems to do the trick.

Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Conditional visibility for stringcompare0