This two lines are working on the command line if executed consequently. But if i use it as a script and run it it doesn't work. And also it causes to run one of my on reboot script. Any ideas ?
:local abcd ([/ip firewall connection print count-only ])
:if ($abcd > 1000) do [/tool e-mail send to="gokalp@......." subject="too many connections" body=($abcd)]