Kodi Community Forum

Full Version: condition == in visible ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
There are two buttons (or other controls which has some label/text on it which we can read).

and I want that if button1 has label "Music" then only button2 should be visible.

in button2:
<visible> what to write here </visible>

can we write something like this in button2:

<visible> control(idButton1).label =="Music" </visible>

Thanks for Help.
checkout stringcompare
Thank You the function worked !!

But we can not read a control's label like this -> control(idButton1).label
how can we do that?
Control.GetLabel(CONTROL_ID)

So you'll want to use -

PHP Code:
<visible>StringCompare(Control.GetLabel(CONTROL_ID),$LOCALIZE[3])</visible


Note the use of localize from the language string so it's universal.
Thank You Hitcher !!
If any of this is not clear in the wiki, then please let us know how it can be improved!
@ jmarshall :
How will I tell, you about wiki ?
means should I message you privately or by posting new thread in forum?
Thank You
Best is posting a thread, with the bit you don't understand, and (if you know the answer) what you think it should say to make it better.

After you've done a few of them, you can start correcting it yourself in the wiki.
@jmarshall
<control type="progress"> is not explained on wiki please explain in detail.
Thanks `Black !!
How did you reach there?

I was searching in
http://wiki.xbmc.org/index.php?title=XBM...ing_Manual
it's not there.

Thank You.
Added to page to the complete lists.

IMO that page is totaly unreadable. Wouldn't it be better to link to the seperate controls/windows instead of including all the wikis into one page?

I did not understand . Sad

How can I get there again without clicking on the link given by `Black.

Thank You.
http://wiki.xbmc.org/index.php?title=Cat...evelopment

We know the wiki isn't ideal but it's WIP
(2012-04-17, 14:15)slinuxgeek Wrote: [ -> ]I did not understand . Sad

How can I get there again without clicking on the link given by `Black.

Thank You.

Google Search: Search for "Progress XBMC" and the first result is there ! Smile
Pages: 1 2