Kodi Community Forum

Full Version: Need Help with SubString(... , ...)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i don't get why this:

Code:
<variable name="AccentColor">
        <value condition="SubString($INFO[Skin.CurrentColourTheme],Silver)">silver.png</value>
        <value>black.png</value>
    </variable>

ever falls back to black.png...

if i'm using $INFO[Skin.CurrentColourTheme] in a label it gives "Silver.xml" back, so the condition should be true...
Try -

PHP Code:
<variable name="AccentColor">
        <
value condition="SubString(Skin.CurrentColourTheme,Silver)">silver.png</value>
        <
value>black.png</value>
</
variable
damn...

thanks Hitcher