using if function is Tag - File Name


I want to have extensions of files on parent directory if the files are not MP3. Is That Possible??

Here is an example :

File ext: mp3
New File name: %albumartist% - %album% %year%\%artist% - %album% - $num(%track%,2).%title%

File ext: flac
New File name: %albumartist% - %album% (FLAC) %year%\%artist% - %album% - $num(%track%,2).%title%

You could apply a filter and then rename the files accordingly ...
%_tag% HAS FLAC
filters those with Flac tag ...

Thanks, but that is not what I want, I want sth to saves me from everytime editing the pattern & having a huge hstory in it. what I meant was using sth like:
$if(NOT %_extension% IS mp3,,"("%_extension%")")

but this doesn't seem to work... am I missing something??

an example mask would be:

%artist% _$if($eql(%_tag%,'Flac'),%_tag%,) %album% _ $num(%track%,3) _ %title%

for Flac files. The preview should show the result for the first selected file.

Thanks So much..... I edited the if function to meet my needs: :smiley:

Two proposals ...

%ALBUMARTIST%' - '%ALBUM%$if($eql(%_tag%,'FLAC'),' FLAC ',' ')%YEAR%'\'%ARTIST%' - '%ALBUM%' - '$num(%TRACK%,2)'.'%TITLE% %ALBUMARTIST%' - '%ALBUM%$if($neql($upper(%_extension%),'MP3'),' '$upper(%_extension%)' ',' ')%YEAR%'\'%ARTIST%' - '%ALBUM%' - '$num(%TRACK%,2)'.'%TITLE%