IsEmpty(Variable)
#1
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.
Reply
#2
(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.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply

Logout Mark Read Team Forum Stats Members Help
IsEmpty(Variable)0