Kodi Community Forum
quick question about <visible> tag - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: quick question about <visible> tag (/showthread.php?tid=56212)



quick question about <visible> tag - azido - 2009-08-12

so,

will this:

<visible>Skin.HasSetting(mainmenu_1)+Skin.HasSetting(mainmenu_2)+Skin.HasSetting(mainmenu_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?


- jmarshall - 2009-08-12

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).


- azido - 2009-08-12

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'macondidtion+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?


- topkat - 2009-08-12

I think he means this:
http://en.wikipedia.org/wiki/Reverse_Polish_notation