[X] Export scripting: unexpected variable assignment between loops

  1. Separated loops, simple.

    How to reproduce:
    Export any track(s) using config:

    $loop(,1)$if($eql(1,2),$puts(test,passed),)$loopend()$loop(,1)$get(test)$loopend()
    

    Loops can be any others, $eql(1,2) is example of obviously false condition.

    Expected: output file is empty

    Observed: output file contain "passed"

  2. Nested loops, more complicated.

    How to reproduce:
    Export few (two at least) tracks using config:

    $loop(%_path%)$if($eql(1,2),$puts(test,passed),)$loop(,1)$get(test)$loopend()$loopend()
    

    First loop can be for:

    • %_path%, %_filename% - for tracks with different filenames
    • %_path%, %_folderpath% - for tracks from different folders
    • %title% - for tracks with different titles
    • etc
    Expected: output file is empty

    Observed: output file contain "passed"

The Mp3tag export scripting language is rather special.
You have to code this way ...

$loop(,1)$puts(test,$if($eql(1,1),'yes','no'))$loopend()$loop(,1)$get(test)$loopend()

DD.20140519.0737.CEST

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