Right now I use this Format Value action to rename a folder:
Format string: %album% '['$upper(%_extension%)']'
Example: \Album title [FLAC]\File.flac
What I would like to do is write an action that would use this format only if there is already a folder with the same name as %album% in the grandparent folder. If not, then it woul use just album name without the extension.
I think that it would require one of the Boolean functions but I don't know how to describe it.