2018-10-06, 06:19
=12ptHi there,
I am new to skinning but am having some success, today i ran into an issue using a variable with conditions. I wanted to display the ListItem.Year with a bracket either side if ListItem.Year is not empty. But for some reason I get the brackets with no characters between (so ListItem.Year appears empty). I have found a different way to make it work but am wondering why it didn't work. I thought I'd ask the question as I don't know if it's just me doing something stupid or if it's not supported or a bug.
I am running kodi v18 beta 3 compiled on 25/9/18 on a mac.=12pt
this works
$INFO[ListItem.Label]$INFO[ListItem.Year, (,)]
this doesn't
variables.xml......................
<variable name="varYear">
<value condition="String.IsEmpty.($INFO[ListItem.Year])"></value>
<value> ($INFO[ListItem.Year])</value>
</variable>
home.xml...................................
<control type="textbox">
.
.
<label>$INFO[ListItem.Label]$VAR[varYear]</label>
</control>
Is it just me?? Thanks in advance for any guidance.
I am new to skinning but am having some success, today i ran into an issue using a variable with conditions. I wanted to display the ListItem.Year with a bracket either side if ListItem.Year is not empty. But for some reason I get the brackets with no characters between (so ListItem.Year appears empty). I have found a different way to make it work but am wondering why it didn't work. I thought I'd ask the question as I don't know if it's just me doing something stupid or if it's not supported or a bug.
I am running kodi v18 beta 3 compiled on 25/9/18 on a mac.=12pt
this works
$INFO[ListItem.Label]$INFO[ListItem.Year, (,)]
this doesn't
variables.xml......................
<variable name="varYear">
<value condition="String.IsEmpty.($INFO[ListItem.Year])"></value>
<value> ($INFO[ListItem.Year])</value>
</variable>
home.xml...................................
<control type="textbox">
.
.
<label>$INFO[ListItem.Label]$VAR[varYear]</label>
</control>
Is it just me?? Thanks in advance for any guidance.