Help assigning var inside anonymous function in macro

I’m on the bus right now and only have my mobile, but if I understand you correctly it’s var!/2 you are searching for.

I can’t give you an example of how to use it, as I’m on the bus.

On the other hand side you should try to redefine your requirements and find a way to do your job without var!/2.