Warning: $if executes regardless of conditional!

1 Select 3 tracks
2 Export with config

$loop(%dummy%)counter=%_counter% $if($eql(%_counter%,1),putting $put(t,%_counter%),getting $get(t))
$loopend()

Expected:

Observed:

Workaround: $loop(%dummy%)counter=%_counter% $if($eql(%_counter%,1),putting $put(t,$if($eql(%_counter%,1),%_counter%,$get(t))),getting $get(t))
$loopend()

$put() and $puts() cannot be used as an argument within Mp3tag functions.

See also:
counting variable
Tips on User Defined Variables
Feature Suggestion: Variable Scope in Exports
Benutzerdefinierte Variable nicht sichtbar in Loop
$puts failure?

DD.20090923.0256.CEST

$put() and $puts() cannot be used as an argument within Mp3tag functions.

That's not my experience, Detlev. The above is an example of where they can be used, provided one knows the unusual behaviour of $if(), and here is an example of more regular use:

$regexp(21h30,$put(r,'^([0-9]{2}).([0-9]{2})$'),\1) --- $regexp(21h30,$get®,\2)