I would like my filenaming to show [Catalog number] if there is that value in the folder name, otherwise leave empty.
I am currently using
$if2(%albumartist%,%artist%)/$if2($left(%originaldate%,7),%originalyear%,$left(%date%,4),0000) - %album% ($if2(%releasecountry%,XX)-$if(%date%,$left(%date%,4),0000)) $if($eq(%catalognumber%,[none]),[%catalognumber%])
/$if($gt(%totaldiscs%,1),%discnumber%,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
which results in
Group/Original YearMonth - Album (CountryCode-Release Year) [Catalog number]/Track number Track Title.mp3
Angelus Apatrida/2021-02 - Angelus Apatrida (XW-2021)/01 Indoctrinate.mp3
which is ok as that release does not have a catalog number
Kreator/2020-02 - London Apocalypticon_ Live at The Roundhouse (DE-2020) [27361 48105]/201 Choir of the Damned.mp3
which is ok as that release has a catalog number
However, I am also getting
Alice Cooper/2021-02 - Detroit Stories (US-2021) /01 Rock 'n' Roll.mp3
Could anyone please clarify? If Alice Cooper’s catalog number is empty, why is it printing  when nothing should have actually be printed?
Thank you for your support in advance.