2010-11-28, 21:03
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.
This didn't work, so I attempted with quotes:
Then I tried to see if stringcompare does anything:
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
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