2023-03-29, 10:28
$PARAM[...] works well if used with
$PARAM[...] seems not be filled in atribute condition
This code for illustrates what I mean :
Test 1 : display rating value (eg: 6.6)
Test 2 : display default value without condition: (eg: 6.6)
=> should be "TEST"
Test 3 : display nothing
If I delete attribute condition rating value (eg: 6.6) is displayed
Of course I have read Wiki to find a answer without success
https://kodi.wiki/view/Skinning_Manual
https://kodi.wiki/view/List_of_boolean_conditions
So my only question is it is normal ?![Smile Smile](https://forum.kodi.tv/images/smilies/smile.png)
i hope i am understandable...
(Sorry for my english)
Thanks for any answers
EDIT : tested with Nexus 20.1 Windows X64
xml:<visible>istrue?($PARAM[...])</visible>
$PARAM[...] seems not be filled in atribute condition
xml:<include condition="istrue?($PARAM[...])">Def_Label_Test</include>
This code for illustrates what I mean :
xml:<variable name="RatingLabel">
<value condition="Integer.IsGreater(Container($PARAM[controlid]).ListItem.Rating,0)">TEST</value>
<value>$INFO[Container($PARAM[controlid]).ListItem.Rating]</value>
</variable>
<include name="Def_Label_Test">
<control type="label">
...
<label>$INFO[Container($PARAM[controlid]).ListItem.Rating]</label>
</control>
</include>
<include name="Furniture_Info">
<param name="controlid" value="$PARAM[controlid]"/>
<definition>
<control type="group">
<visible>Control.HasFocus($PARAM[controlid])</visible>
<control type="grouplist">
<!-- Test 1 -->
<control type="label">
...
<label>$INFO[Container($PARAM[controlid]).ListItem.Rating]</label>
<visible>Integer.IsGreater(Container($PARAM[controlid]).ListItem.Rating,0)</visible>
</control>
<!-- Test 2 -->
<control type="label">
...
<label>$VAR[RatingLabel]</label>
</control>
<!-- Test 3 -->
<include condition="Integer.IsGreater(Container($PARAM[controlid]).ListItem.Rating,0)">Def_Label_Test</include>
</control>
</control>
</definition>
</include>
Test 1 : display rating value (eg: 6.6)
Test 2 : display default value without condition: (eg: 6.6)
=> should be "TEST"
Test 3 : display nothing
If I delete attribute condition rating value (eg: 6.6) is displayed
Of course I have read Wiki to find a answer without success
https://kodi.wiki/view/Skinning_Manual
https://kodi.wiki/view/List_of_boolean_conditions
So my only question is it is normal ?
![Smile Smile](https://forum.kodi.tv/images/smilies/smile.png)
i hope i am understandable...
(Sorry for my english)
Thanks for any answers
EDIT : tested with Nexus 20.1 Windows X64