:global ip ""; :foreach iplist in=[/ip firewall address-list find where list="list-bogons"] do={:set $ip "$[/ip firewall address-list get $iplist address ;],$ip"; :put $ip}
This is beautifulAll this looks a bit over-complicated. The correct way is this:
Code: Select all:set $MyArray ($MyArray, $Value);