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]
}