Setting Queue Tree max-limit value

I need to change the max-limit value. I’m not sure how to debug scripts to see what is incorrect about this syntax. What is the error here? This should work. RouterOS v6.47.10


# Set QoS Values
:local sGateway "1.2.3.4"

:if ( $sGateway  = "1.2.3.4") do={
     :log info "Setting speed to 4.5M"
     /queue tree set [find name="DOWN"] max-limit=4500k]
    } else={
      :log info "Setting speed to 40M"
      /queue tree set [find name="DOWN"] max-limit=40M]
}
I'm not sure how to debug scripts to see what is incorrect about this syntax

you can save the script in /system scripts then you run the script from console with /system scripts run command then you will see the errors

just too much ] at the end…

Ugh ... thank you!


That's helpful, thank you!