Comment out parts of the file name format?

I have two different formats that I choose from based on whether or not it is a multi-artist or not:

$if2(%albumartist%,%artist%) -- $if($ne(%albumartist%,),%album% $if(%originalyear%,\(%originalyear%\), $if(%date%,\($left(%date%,4)\)))/,)%artist% -- $if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)- %title%

$if2(%albumartist%,%artist%) -- $if($ne(%albumartist%,),%album% $if(%originalyear%, \(%originalyear%\), $if(%date%,\($left(%date%,4)\)))/
,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,)$if(%_multiartist%,%artist% -- ,)%title%

I was able to get around it with:

$if(%_multiartist%,$if2(%albumartist%,%artist%) -- $if($ne(%albumartist%,),%album% $if(%originalyear%, \(%originalyear%\), $if(%date%,\($left(%date%,4)\)))/

,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,)$if(%_multiartist%,%artist% -- ,)%title%,$if2(%albumartist%,%artist%) -- $if($ne(%albumartist%,),%album% $if(%originalyear%,\(%originalyear%\), $if(%date%,\($left(%date%,4)\)))/,)%artist% -- $if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)- %title%)

so I don’t need that as an answer. I would like to know if there is a way to put comments into the file naming format so that I could comment out one but keep it saved inside the Picard options. E.g., in bash, you would use # to comment out items…

In Picard’s scripting you put the code you want to comment out inside $noop(...). Picard will show this in a gray color to indicate that it is inactive part of the script.

1 Like