Kodi Community Forum

Full Version: IsEmpty(Variable)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Should this work?

Code:
<variable name="var1">
  <value condition="foo">bar</value>
</variable>

Code:
<label>$VAR[var1]</label>
<visible>!IsEmpty(var1)</visible>

Because it's always hidden whether var1 is empty or not.

Thanks.
(2012-12-23, 19:50)Hitcher Wrote: [ -> ]Should this work?

Code:
<variable name="var1">
  <value condition="foo">bar</value>
</variable>

Code:
<label>$VAR[var1]</label>
<visible>!IsEmpty(var1)</visible>

Because it's always hidden whether var1 is empty or not.

Thanks.

control.GetLabel(labelid) works as a workaround. IsEmpty/stringcompare/substring isnĀ“t possible with vars atm.