Help - Search - Members - Calendar
Full Version: How to compare two tags
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
fabiospark
I set up an Sqlite tag where I temporarily put info with a remote control while the track is playing and I called it "__kw1".
Every now and then I copy this info into a permanent tag written into the file itself called "situation".

I would like to be able to build a query in Playlist generator and also in Albumlist (or playlisttree).

To check things at work, I wrote
CODE
$if($stricmp(%__kw1%,%__situation%),match,unmatch)
in the trackinfo panel and, for a track with matching tags it shows "match".

Now, how can I filter the database and get only the tracks that match (or that don't)?

When I try with the playlist generator writing
CODE
__kw1 HAS %situation%
I get nothing.

Probably I'm missing something.

Thanks
foosion
Neither IS nor HAS allow titleformatting to be used for the parameter on the right-hand side; you can only use literal strings, IS also allows wildcards. Your query checks if __kw contains the string "%situation%" (without the quotes).
fabiospark
So, how to filter in PlaylistTree?
By now I'm using an "if" but so I have to keep the "else" value even if I don't want it (or not?).
As fa as I remember I can't put "|" into a formula, can I?

And how to filter in playlist generator.

Thanks again.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.