Author Topic: Having issues with $IsNull on player scroll. What am I doing wrong?  (Read 1803 times)

duplicate

  • Newbie
  • *
  • Posts: 9
I have created a virtual tag, Virtual2, with value
Code
$IsNull(<Composer>,,"("<Composer>")")
And set Preferences > Now Playing > playback > scroll in player as:
Code
<Artist> - <Title> <Virtual2>
It functions as expected when the <Composer> field is not empty, that is, it displays (for instance), Cake - Sad Songs And Waltzes (Willie Nelson). However, when the <Composer> field is empty, Cake - Comanche Unknown Virtual2 is displayed. What am I doing wrong here?

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34349
replace <Virtual2> ie.
<Artist> - <Title> $IsNull(<Composer>,,"("<Composer>")")

duplicate

  • Newbie
  • *
  • Posts: 9
replace <Virtual2> ie.
<Artist> - <Title> $IsNull(<Composer>,,"("<Composer>")")

That worked, thanks. But was what I was experiencing intended behavior?

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34349
yes because the result of <Virtual2> was blank. If i was to do things again, i probably would have MB say "Unknown XXX" for empty virtual tags but its too late to change that now