Kodi Community Forum

Full Version: <visible> Condition for folders in file mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

I´m looking and searched a while so far, but didn´t find a solution.

I need a <visible> condition to show a button when navigating in folders. I found only conditions for database mode, but for ceratin reasons i need to navigate in file mode.

For example i want to show a button when in folder C:\music\folder1 C:\music\folder2 C:\music\folder3 C:\music\folder3\folder4... but hide the button when in folder C:\music\

Is there a way to do this? How is the syntax if?

Thanks in advance
Best regards
stringcompare(container.folderpath,PATH)
Hi.

Thank you.

Halfway it works.
I tried
Code:
<visible>stringcompare(container.folderpath,C:\Media\MP3\Hoerspiele\) | stringcompare(container.folderpath,C:\Media\MP3\Musik\)</visible>
and the button appears in folder "Hoerspiele" and "Music", but not in folders below Hoerspiele or Musik. Are there placeholders to be used? * doesn´t work

Otherway i tried to exclude C:\Media\MP3 (the Root folder in this section) with
Code:
<visible>!stringcompare(container.folderpath,C:\Media\MP3\)</visible>
but then the button appears everywhere in this section.

I want the button to disappear in folder C:\Media\MP3, but it doesn´t work. Where is my misstake?

Best regards
Use substring instead of stringcompare.
That´s it. Thank you. Made my day Big Grin