Author Topic: A virtual tag formula that checks if two regular tags are populated?  (Read 1036 times)

Antonio

  • Newbie
  • *
  • Posts: 7
I'm trying out MusicBee and it's more advanced features.
But I am already running into a problem with the so called "virtual tags".

I would like to have a virtual formula that performs an action depending on if two regular tags are empty or not.

Presenting a simplified example:

If the tags <occasion> and <mood> are both empty, output 'empty'.

I've tried many formulas by now, but I can't find one that is working.

This one surely doesn't work, but it might give you an idea about what I am trying to accomplish here:
$if($and($isnull(<occasion>),$isnull(<mood>)),empty,populated)

Surely this can be done and I am missing something, but what?

Tia!


P.S.
Trying to become a member on this forum is a very bad experience.
I'm pretty sure my answers for selecting matching pictures was correct, but I got rejected repeatedly.
I almost gave up and called it a day.

(I have probably wasted my time in helping google or some other party to learn how humans identify pictures for free?)

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 9365
Trying to become a member on this forum is a very bad experience.
I'm pretty sure my answers for selecting matching pictures was correct, but I got rejected repeatedly.
I almost gave up and called it a day.
I'm sorry to hear you had a problem registering for the forum. I know sometimes the lack of the detail in some pictures makes it difficult to see and might result in an incorrect response. However, if we did not have the Captcha step, the forum would be inundated with spam. As it is we're manually deleting spam almost daily. Personally it's a small price to pay to keep the forum spam-free. Besides, once it's done, you won't have to do it again.
Download the latest MusicBee v3.5 or 3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

Antonio

  • Newbie
  • *
  • Posts: 7
I'm sorry to hear you had a problem registering for the forum. I know sometimes the lack of the detail in some pictures makes it difficult to see and might result in an incorrect response. However, if we did not have the Captcha step, the forum would be inundated with spam. As it is we're manually deleting spam almost daily. Personally it's a small price to pay to keep the forum spam-free. Besides, once it's done, you won't have to do it again.

All true.
Not complaining, just pointing out that it may not be functioning very well (for humans that is, maybe bots perform better here: they don't get tired or irritated), and that it might brush-off some users aspiring to become a member.

Back on-topic:
Do you happen to have some suggestions for my virtual tag challenge?

hiccup

  • Sr. Member
  • ****
  • Posts: 7907
I've been looking (hoping) for an easy way to do that too.
(both for And and Or)

It's a slightly more complicated solution, but you could achieve this by using nesting.

Using your example, this should give the result that you want:
$IsNull(<Occasion>,$IsNull(<Mood>,empty,populated),populated)

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34369