Hello Mikrotik. please fix this. I think this is a bug. in loops, packet-mark=!"something$i" doesn't work and I need to do it by hand. sometimes for large numbers (100 or 200).
sample code:
for i from=0 to=100 do={ip firewall mangle add chain=forward dst-address=10.10.10.0/24 action=mark-packet new-packet-mark="ThisIssueBothersMe$iTestIt";ip firewall mangle add chain=forward packet-mark=!"ThisIssueBothersMe$iTestIt" action=accept}
I didn't test it on other places. so there may be a larger bug that this issue is part of that.