[X] '$put or $puts in $if' bug


I've found a bug in MP3Tag v2.39 (and it remains in v2.39a) export.
If I put a $put or $puts command in the second or third place (in place of 'do if true', 'do if false') in an $if statement, the command will be executed independently of my conditions.

Here is a stupid example, run it some audio files having fields ARTIST and TRACK:

$if(%artist%,Artist OK,$put(ctr,$num(%track%,2) no artist))
%artist% - $get(ctr)

As you can see, the variable ctr should be nothing if the audio file has the field ARTIST. BUT it changes in every iteration.


No, you must place $put before the $if like here:

Thank you very much. :slight_smile:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.