Variable is Empty

Im using 3.23 ROS

THis is my Code:




:global info;

:set info [:put (/ip firewall mangle get 0 bytes)];

/tool e-mail send body=“$info” to=“stefand@aknt.co.za” subject=“Report”;






The email is blank. If I run it from comman line it has a value. Ive tried it without the “:put” there aswell but it still sends a blank email.

Please help.

You can’t use console numbers in scripts. So this “(/ip firewall mangle get 0 bytes)” line is invalid.
add comment to that mangle rule and make it something liek following

/ip firewall mangle get [find comment="myComment"] bytes

Thank you. You are a star!