Newbie simple script does apparently nothing

Hello

I am a newbie writing a very simple script to enable/disable the rules redirecting outgoing http traffic to the proxy listening on port 8081. I coded

/ip firewall nat disable [/ip firewall nat find to-ports=8081]

but this does apparently nothing.

I probably have overseen something, but I can’t figure out what. Any help would be very appreciated.

Thanks in advance.

Pierre

/ip firewall nat disable [/ip firewall nat find to-ports="8081"]

Thank you, 2frogs, this works!

It’s really strange that there is no error generated when a script contains a syntax error…