param with conditional to include - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: param with conditional to include (/showthread.php?tid=330287) |
param with conditional to include - z1haze - 2018-03-29 Is it possible to pass a param to an include with a condition="..." applied to it? RE: param with conditional to include - jurialmunkey - 2018-03-29 If you mean make the param conditional, not really. However, you can make the include conditional: Code: <include content="MyInclude" condition="Window.IsVisible(Home)"> Just use multiple includes for the different param conditions. Note that include conditions only evaluate on window load, so they won't change dynamically. For dynamic stuff use variables and/or visible conditions. RE: param with conditional to include - z1haze - 2018-03-29 Bummer, yeah I was referring to a conditional param.. I have about 10 lines of params that I duplicate a bunch in my settings.. they are mostly position, width, height, stuff like that.. and there are onup, onleft, etc.. The issue was that some of these onleft params had 'condition="..."' applied to them so I was hoping to be able to include that in the param when passing it to the include, but i suppose I'll just continue with duplication RE: param with conditional to include - jurialmunkey - 2018-03-29 You can use a param as a condition though. e.g. Code: <include content="MyInclude"> Code: <include name="MyInclude"> For this specific example, you could also do: Code: <onleft condition="Control.IsVisible($PARAM[onleft])">$PARAM[onleft]</onleft> |