# Anyone know a workaround for this \$get bug?

Export config:

\$filename(\$get_bust.txt,ansi)\$puts(x,45)\$get(x)\$loop(%dummy%)
{\$get(x)}\$loopend()

expected:
45
45
45
...

observed:
45
{}
{}
...

Thanks.

Using this script ...

\$filename(F:\TEMP\\$get_bust.txt,ansi)\$puts(x,45)\$get(x)\$loop(.)
{\$get(x)}\$loopend()
\$get(x)

... I got this result ...

45
{}
45

This points to the problem I've mentioned repeatedly long time ago.
An outside of the loop user defined variable is not visible within the loop.
I thought that Florian has addressed this weak behaviour in the meantime.

DD.20090905.1900.CEST

And this is interesting too, because an inside of a loop defined variable is visible outside of the loop ...

\$filename(F:\TEMP\\$get_bust.txt,ansi)\$loop(1)\$puts(x,45)'1:'\$get(x)\$loop(1)
'2:'\$get(x)\$loopend()
'3:'\$get(x)\$loopend()
'4:'\$get(x)

... which gives the result ...

1:45
2:
3:45
4:45

DD.20090905.1910.CEST

I thought that Florian has addressed this weak behaviour in the meantime.

I also recall but I certainly don't recall a fix.