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

**URL:** <https://discourse.beets.io/t/inline-plugin-how-can-i-create-a-condition-that-matches-multiple-tags/1076>\
**Category:** Help\
**Created:** [January 21, 2020, 11:07am UTC](https://discourse.beets.io/t/inline-plugin-how-can-i-create-a-condition-that-matches-multiple-tags/1076 "2020-01-21T11:07:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heris](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@Heris](https://discourse.beets.io/u/Heris)\
**Post date:** [January 21, 2020, 11:07am UTC](https://discourse.beets.io/t/inline-plugin-how-can-i-create-a-condition-that-matches-multiple-tags/1076/1 "2020-01-21T11:07:36Z")

</div>

Greetings,

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.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [January 22, 2020, 12:26am UTC](https://discourse.beets.io/t/inline-plugin-how-can-i-create-a-condition-that-matches-multiple-tags/1076/2 "2020-01-22T00:26:44Z")

</div>

Hi! Try it with `==` instead of `=`. 😃
