Just run the test below; if the dynamic variable is at the beginning of $calc, there is no problem, but if it is after, it is not counted.

alias mirc.scalc.var.dinamic {
var %xa 2
echo -a $calc(1 + %x [ $+ [ a ] ]) // $calc(%x [ $+ [ a ] ] + 1) // $calc(1 + %xa)
}

How would I get this to work?

tks!