HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: uselessladder on 2021-06-19 05:58:40

Title: Code for separating library by file location?
Post by: uselessladder on 2021-06-19 05:58:40
I have been using this line of code to separate my library by hard drive:

Code: [Select]
$if($stricmp($left(%path%,1),C),Laptop Music,External Music)| ... 

So far I had two drives, so my library looks like this:
(https://i.imgur.com/gTXrfDH.png)

Now I got a second external drive, so I want to change the code to add a third section to the list.
Please help me figure out the correct syntax.
Title: Re: Code for separating library by file location?
Post by: davideleo on 2021-06-19 08:43:03
Please help me figure out the correct syntax.

Write another if statement in place of the else statement:

Code: [Select]
$if($stricmp($left(%path%,1),C),Laptop Music,$if($stricmp($left(%path%,1),D),External Music,Whatever))
Title: Re: Code for separating library by file location?
Post by: uselessladder on 2021-06-20 04:41:51
Write another if statement in place of the else statement:

Code: [Select]
$if($stricmp($left(%path%,1),C),Laptop Music,$if($stricmp($left(%path%,1),D),External Music,Whatever))

Thank you so much!
SimplePortal 1.0.0 RC1 © 2008-2021