$puts failure?

Can anyone tell me why running this Export config on one file:

$puts(v,AAA)$loop(%album%)$puts(v,BBB)$loopend()$get(v)

outputs AAA rather than BBB as expected?

Benutzerdefinierte Variable nicht sichtbar in Loop
Chrisjj, an user defined variable is only valid in the block where it has been defined.
There is no concept of user defined global variables in reports. This is really bad sometimes.
Hmm, didin't you discuss a similar problem here in the forum some weeks ago?

DD.20080327.0049.CET

an user defined variable is only valid in the block where it has been defined.

If block means loop here, that does accord with what I observe.

Sadly it fails to accord with the docs.

There is no concept of global variables in reports.

Again, the docs don't agree.

If you're suggesting this is defined behaviour... how so?

Hmm, didin't you discuss a similar problem here in the forum some weeks ago?

I recall only loop(...$put()...) .