Inline plugin: How can I create a condition that matches multiple tags?


I should mention that I’m not well versed with python. I have the following setup for my paths:

default: $albumartist/%if{$no_va,[Solo Albums]/$albumartist_credit/}$album%aunique{}/%if{$multidisc,Disc $disc/}$track. $artist - $title

$no_va is defined thus through the inline plugin:

no_va: 1 if albumartist_credit != ‘’ else 0

However, this is only a bandaid that works for a subset of my collection. I’d like to do something like

no_va: 1 if albumartist = label else 0

but if I try it, beets complains about invalid syntax.

Hi! Try it with == instead of =. :smiley: