RouterOS 6.49.7 (stable)
Here's what I'm trying to do:
:set $qid [/queue simple get value-name=name $q];
:set $qq [:pick $qid 0 1];
:set $qplan [:pick $qid 1 3];
:set $qplan [:tonum $qplan];
:set $qpm [:tostr $qplan]."M";
:if ($qplan>0) do={ /queue simple set [find name=$qid] max-limit="0/$qpm" burst-limit="0/0" burst-threshold="0/0" burst-time="0/0"; }
:set $qpm [:tostr $qplan]."M"; keeps giving me an error saying it expects the line to terminate before the ."M".
I tried replacing it with:
:set $qpm [:tostr $qplan];
:set $qpm $qpm."M";
but I get an error on the second line of that.
I've worked around it by using:
:set $qpm (1024*1024*$qplan);
But I'd like to know why I'm getting the errors when trying to use the previous.