Hello,

Please try:

VAR=%%MYVAR%%

Does this help?

Friedrich