quick question about <visible> tag

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
azido Offline
Posting Freak
Posts: 1,881
Joined: Nov 2008
Reputation: 1
Location: Stuttgart, Germany
Question  quick question about <visible> tag
Post: #1
so,

will this:

<visible>Skin.HasSetting(mainmenu_1)+Skin.HasSetting(mainmenu_2)+Skin.HasSetting(mainm​enu_3)</visible>

work the same way as using

<visible>Skin.HasSetting(mainmenu_1)</visible>
<visible>Skin.HasSetting(mainmenu_2)</visible>
<visible>Skin.HasSetting(mainmenu_3)</visible>


or is there a difference (functionality, speed-wise, you name it) ?

which of them should be preferrable?

cheers,azido :;):
find quote
jmarshall Online
Team-XBMC Developer
Posts: 25,671
Joined: Oct 2003
Reputation: 169
Post: #2
They're effectively identical. The only difference is the second adds brackets around the expressions, which I could perhaps add a very slight overhead (I can't recall offhand how the reverse polish thing works).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
azido Offline
Posting Freak
Posts: 1,881
Joined: Nov 2008
Reputation: 1
Location: Stuttgart, Germany
Post: #3
thanks, jonathan.

i kept the example simple for a reason. my real intention was to find out if a really long line of conditions has an impact in working for a skin like
<visible>this+that+this+something+someother+blah+blubb+bleeeh+more+haha+lookatmei'maco​ndidtion+iwanttobreakfree+azidorocks+so+on</visible>
especially if there are many of them in a kinda big xml.

jmarshall Wrote:(I can't recall offhand how the reverse polish thing works).

i have to admit that, although in general my english is really good: i don't understand this phrase. Even when i use google to translate.. Rolleyes can you explain?

cheers,azido :;):
(This post was last modified: 2009-08-12 12:15 by azido.)
find quote
topkat Offline
Junior Member
Posts: 28
Joined: Aug 2009
Reputation: 0
Post: #4
I think he means this:
http://en.wikipedia.org/wiki/Reverse_Polish_notation
find quote