using $if($meta(...


#1

Why does this expression always return "no"?

$if($meta(x),yes,no)

The $if condition is never met even if an explicit use of $meta(x) has a result.

I wanted to use something like this with $meta(x,1) to find (filter) all files where x is a multi-tag. I can work-around if I don't use the $if, just curious why it's like this.


#2

Mp3tag's evaluation of boolean values has always been baffling. I can't figure out what it considers true or false most of the time.

Here's one way to do it:

$iflonger($meta(artist,1),0,yes,no)