Ok… i;ve found answer in post http://forum.mikrotik.com/t/cli-local-variables-v3/19809/1
EDIT
BUT:
How to make this Working ???
[admin@primary] > {
{... :local test 1
{... :if ($test=1) do={:local test 2}
{... :put $test
{... }
1
[admin@primary] >
But modiefied script is showing that variable test on begening and inside if statement are two diffrent variables.
[admin@primary] > {
{... :local test 1
{... :if ($test=1) do={:local test 2; :put $test}
{... :put $test
{... }
2
1
[admin@primary] >
So my question is:
How to get access to parent variable from child script ???