2018-10-26, 14:34
Hi all,
Is it not possible to have a variable inside a <visible> tag? I cant seem to get it to work...
Thanks,
Is it not possible to have a variable inside a <visible> tag? I cant seem to get it to work...
Thanks,
(2018-10-26, 16:30)Hitcher Wrote: As the visible condition you mean? Then no.Ah okay. I could make the boolean in one statement, but if i put it in a variable it would become much more readable. I just wanted to make sure it wasn't possible to put a variable inside a visibility statement.
What are you trying to achieve?
<visible>
[
!Container.Content(seasons)
+ !Container.Content(episodes)
+ !Container.Content(movies)
+ !Container.Content(sets)
+ !Container.Content(tvshows)
+ !String.StartsWith(Container.FolderPath,plugin://script.skin.helper.widgets/?action=browsegenres)
+ !Window.IsVisible(MyPVRSearch.xml)
+ !Window.IsVisible(MyPVRTimers.xml)
+ !Window.IsVisible(MyPVRguide.xml)
+ !String.StartsWith(Container.Folderpath,androidapp://)
+ !String.StartsWith(Container.FolderPath,pvr://channels/radio/)
]
| Window.IsVisible(MyPics.xml)
</visible>
(2018-10-26, 18:49)sualfred Wrote: You can add multiple visible tags, but once one is false it will be false. Useable if you just want to have a control/window hidden in rare scenarios.I did not think of writing it that way. That's great! Thanks man.
Another option is write it readable, which is fine. Example:
Code:
<visible>
[
!Container.Content(seasons)
+ !Container.Content(episodes)
+ !Container.Content(movies)
+ !Container.Content(sets)
+ !Container.Content(tvshows)
+ !String.StartsWith(Container.FolderPath,plugin://script.skin.helper.widgets/?action=browsegenres)
+ !Window.IsVisible(MyPVRSearch.xml)
+ !Window.IsVisible(MyPVRTimers.xml)
+ !Window.IsVisible(MyPVRguide.xml)
+ !String.StartsWith(Container.Folderpath,androidapp://)
+ !String.StartsWith(Container.FolderPath,pvr://channels/radio/)
]
| Window.IsVisible(MyPics.xml)
</visible>