Does IsEmpty work for $VAR
#1
Hi,

Just wondering if anyone knows if IsEmpty works for $VAR or if there is another way to check a VAR?

I have an on-going issue in Madnox that after a random amount of time VARs just start losing their value. A ticket (16634) has been opened a whlle ago on the issue. Basically the var used in a colordiffuse becomes blank / empty so panel backgrounds become transparent and windows then are unreadable as no background exists. Can be any window at any time!

So I was wondering if I can build in checks / work arounds just in case the issue can't or isn't resolved? i.e. display different background on !IsEmpty or IsEmpty?
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#2
I think StringCompare\IsEmpty is not supported in variables.
I tried it here in this case: http://forum.kodi.tv/showthread.php?tid=263337
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#3
---removed, I missunderstood the post. sry. --
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#4
(2016-05-04, 15:47)Mike_Doc Wrote: Hi,

Just wondering if anyone knows if IsEmpty works for $VAR or if there is another way to check a VAR?

I have an on-going issue in Madnox that after a random amount of time VARs just start losing their value. A ticket (16634) has been opened a whlle ago on the issue. Basically the var used in a colordiffuse becomes blank / empty so panel backgrounds become transparent and windows then are unreadable as no background exists. Can be any window at any time!

So I was wondering if I can build in checks / work arounds just in case the issue can't or isn't resolved? i.e. display different background on !IsEmpty or IsEmpty?
Maybe something tricky Mike but what about placing a dummy invisible label containing the VAR also as label and a fallback with "EMPTY" text ? Give it a ID and check if the Control.GetLabel(ID) is "EMPTY" ? Not 100% sure but I have something in mind that make me think the fallback is returned by Control.GetLabel if label (VAR) is empty.
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#5
For "Text Var´s" I often use a value Fallback at the end of the VAR with a simple Text like xxx..
And use the VAR in a dummy invisible label with ID and stringcompare it with negation on xxx.
This works better. IsEmpty doesent work in some cases for me, or i use it more than one times,
so its easier in a hidden control.

Regards
Reply

Logout Mark Read Team Forum Stats Members Help
Does IsEmpty work for $VAR0