Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

$if statement in Media Library/Album List/View
post Jul 28 2013, 17:07
Post #1

Group: Members
Posts: 3
Joined: 28-July 13
Member No.: 109341

I'm trying to set up some views, however $if statements are either not working or I've missed something in the documentation...

Ultimately, I want to create views for 'recently added' as well as 'new unsorted' etc., but here's a simple example of the issue I'm having:

Adding a new view with this script:

$if(%genre% HAS "Rock",%album artist%,)

..i would expect it to return all album artists which contain tagged mp3s with a genre containing Rock

However it returns all album artists which have any genre, ie. the same results as

$if(%genre%,%album artist%,)

I've tried different (needlessly complicated) approaches, but to no avail. Also tried different simple examples, all seem to do the same thing. Whenever there's a HAS or IS or whatever, it ignores it and just returns 'true' for the %variable% in the statement if on its own it would be 'true'.

What am I missing?

PS. Apologies if this is the wrong forum - Tech Support is not about 'How To' and General isn't about 'Tech Support'... Please move my post if needed.

Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 1st August 2015 - 10:29