Glad I could help.
You can't copy and paste it into the expressions editor like this, but to break it down:
- <font size="10" alpha="0" color="ffffff">[Year] [Channels] [Disc #] <//font>
- Delimit([Year],/]/ ,/[)
- [Album]
- Delimit([Description],/),/ /()
- Delimit(If(Compare([Channels,0], <, 3),,/ ‒/ Multichannel))
1. The <font> section displays a "hidden" prefix to the group, which I use to set the sort order. This ensures that albums are sorted by Year, Number of Channels, and Disc # in ascending order.
2.
Delimit() only displays when the field has a value.
And you can specify a head/tail string to be applied when that field does have a value.
In this case, it wraps Year with square brackets. E.g. [2015]
To display brackets you must escape them first, using a forward slash.
The same applies to explicit spaces - that's why there are so many slashes everywhere.
If you use a space in the middle of a string it should be fine, but if you want to start with a space, you need to use "/ "
5. Here, we check to see whether the number of channels is less than 3. If it is, we do nothing.
If it is not less than three, it gets " ‒ Multichannel" added to the end of the name.
I'm not sure why I did it that way - you could just as easily do "greater than two". Probably because I was new to expressions at the time I wrote that.
When trying to figure things out, I find the easiest way to modify an expression is to right-click the columns in a view and add an Expression Column.
This is the quickest type of field that you can edit which will display an expression, and you can then copy and paste it elsewhere once you have it displaying what you want.