Sometimes the scope of user variables in Exports is a little awkward to use, because it is not possible to use a variable that has been set previously within an outer loop. For some reason, the scope of the user variables extends outwards, not inwards.
This will not function (and it’d be nice if it did!):
$loop(%genre%) $puts(fn,%genre%.m3u) $loop(%_path%) ECHO %_path% >> $get(fn) $loopend() $loopend()
(Over-simplified code snippet, extra line feeds added for readability.)
The variable fn will be undefined within the inner $loop(…).
Is it possible to change that?