Hide Brackets

#1

Ok, quick tip, How to hide [Brackets] if there is no value?

#2

That’s not much info to go on, but if I understand you correctly you want to avoid showing empty brackets for something such as a date in brackets if the date is empty. That’s pretty easy. Try something like:

$if(%date%,[%date%] ,)

If you meant something else, please provide more information.

3 Likes
#3

No this is more than enough info to help me, Thanks so much. Now if you could tell me how to delete the empty space where the [Empty] brackets would be so that the next bracket with a value will be next to the last value bracket and look better. Here is an example:
Not Good --> 2016 - Book of Shadows II [CD] [US] [15 trks] [CBR 320] [2016]
Much Better-> 2016 - Book of Shadows II [CD] [US] [15 trks] [CBR 320] [2016]

#4

Just include the space in the $if() statement as I did in my example. As written if %date% is not empty it will print the %date% value within brackets with a trailing space. If %date% is empty, it won’t print anything.

#6

I think I figured it out thanks.