I have upgraded my router to routeros 6.2 and my scripts stop working.
example:
:foreach que in=[/queue simple find] do={
:local queName [/queue simple get $que name];
:local queComment [/queue simple get $que comment];
:log info "$queName ; $queComment";
}
script print name but not comment…
I ran “/system script print from=myscript” and see $que highlighted by red (like undefined) in second line of loop.
but if i rename que to qqq - it will work.
Seems to parsing bug ($que and $queSomethig).
Yeah. I have noticed that too. If you use a variable name that has some meaning without the $ it seems to ignore the $ and use the name instead of your variable. I had $ttl and that was breaking with the static dns. I am not sure if this is fixed in 6.3 or if this is “expected behavior”, but just avoid those variable names and it works fine.