String.Contains function.....helpppp....
#1
Sad 
Hello...i'm going crazy....

I'm under Krypton and do a mod for a skin.....

the String.Contains() function seem to not working....or, i hope, i'm wrong ....

here is my problem :

Code:
<control type="group">
    <posy>350</posy>
    <posx>-600</posx>
    <scrollspeed>30</scrollspeed>
    <scroll>true</scroll>
     <control type="label">
     <posy>0</posy>
     <align>left</align>
     <label>1-$INFO[ListItem.Path,,extrafanart/]</label>
     </control>
     <control type="label">
     <posy>20</posy>
     <align>left</align>
     <label>2-$INFO[ListItem.Art(fanart)]</label>
     </control>
     <control type="label">
     <posy>40</posy>
     <align>left</align>
     <label>3-$INFO[ListItem.Path]</label>
     </control>
     <control type="label">
     <posy>60</posy>
     <align>left</align>
     <label>4-$INFO[Control.GetLabel(7998)]</label>
     </control>
     <control type="label">
     <posy>80</posy>
     <align>left</align>
     <label>5-</label>
     <visible>String.Contains(Control.GetLabel(7998),ListItem.Path)</visible>
     </control>        
</control>

and the result :

Image

I don't understand why the label 5 is visible !?
Label3 and Label are different !!!

Why don't work ?

please help meeeeee....LOL
Intel NUC 5YPPH-8Go-SSD120go-external drive 1To
Windows 10 PRO - Kodi Krypton 17 - IconMix
Reply
#2
as far as i know, the second part can't be an infolabel, it must be a string.

only with String.IsEqual() you can compare two infolabels.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
So, bad news… ..
Infolabel is a string… .may be with the $INFO[] ?
Kodi need some more powerfull function like this and arithmetic functions… ..

Anyway, thank you
Intel NUC 5YPPH-8Go-SSD120go-external drive 1To
Windows 10 PRO - Kodi Krypton 17 - IconMix
Reply
#4
you're right....only string without quote :

d:\Video -> work
"d:\Video" -> don't work



may be on a kodi update this function could compare infolabel too....

String.IsEqual can't do my job coz i need to compare with a part of a string......

.....

may be someone can explain to me how i can get this function with an addon script....

i've tested many code this afternoon but none work...Sad
certainly coz i don't yet understand plugin and script difference...

If someone , generous, can show me the base.....

the job : compare part of an infolabel to anoher, and return value to a VAR or another......



if someone got an idea.... thanks
Intel NUC 5YPPH-8Go-SSD120go-external drive 1To
Windows 10 PRO - Kodi Krypton 17 - IconMix
Reply
#5
Try $ESCINFO(%s)
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
#6
(2016-08-23, 15:33)sualfred Wrote: Try $ESCINFO(%s)

With
Code:
<visible>String.Contains(Control.GetLabel(7998),$ESCINFO[ListItem.Path])</visible>
always return false...even Part3 is a part of Part4......

Image

Confused
Intel NUC 5YPPH-8Go-SSD120go-external drive 1To
Windows 10 PRO - Kodi Krypton 17 - IconMix
Reply

Logout Mark Read Team Forum Stats Members Help
String.Contains function.....helpppp....0