Author Topic: Remove empty line if fields are empty using $IsNull  (Read 330 times)

cereal_eater

  • Jr. Member
  • **
  • Posts: 24
I hide missing information in the header of the selected album using this code:

Code
$IsNull(<Publisher>,,<Publisher>)$IsNull(<Produzent>,," | "<Produzent>)

If tags are present, everything works fine and shows Publisher | Produzent but if the tags are empty, there is a blank line left:



There is a very similar problem discussed here but I couldn't solve my problem to remove the space.

Any suggestions?

cereal_eater

  • Jr. Member
  • **
  • Posts: 24
I asked the AI and a suggestion was

Code
$IsNull(<Publisher>,,$IsNull(<Produzent>,,<Publisher>" | "<Produzent>))

but the problem persists. I think as soon as a Tag field is specified, a line will be inserted, even if the fields are empty, right?


Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
I think as soon as a Tag field is specified, a line will be inserted, even if the fields are empty, right?
Not always. If you look at the Track Info panel for example, it will remove the blank line when the field is empty.
Your best bet is to post a wishlist request for the same behaviour to apply on this panel from your screenshot.
Make sure to search the forum first in case there's already an existing thread for such a request that you can +1.
Strength and Honour (2025)

cereal_eater

  • Jr. Member
  • **
  • Posts: 24
Thanks for your response Mayibongwe, I observed this behaviour in the Track Info panel as well. Would be nice, if this was consistent across all panels. I had a look at the Wishlist section, but didn't find any related threads. So I will post there.

voodoopunk

  • Full Member
  • ***
  • Posts: 212
$IsNull works perfectly fine in the Track Information panel, I imagine a lot of people use it there. Five of them in the screen below:

Black Flag - The First Four Years

cereal_eater

  • Jr. Member
  • **
  • Posts: 24
$IsNull works perfectly fine in the Track Information panel, I imagine a lot of people use it there.

I need to aplogize for my bad wording in the last post, but by "observed in the Track Info panel as well" I meant that the lines are removed in the Track Info panel, but not in the header of a selected album in the main panel.

I use $IsNull in the Track Info panel as well.