Instead of using on-error, find out what version of RouterOS the router is running and the run the correct part with if:
Sample code to see main version:
Sample code to see main version:
Code:
{:local ver [:tonum [:pick [/system resource get version] 0 1]] :put $ver}
Statistics: Posted by Jotne — Wed Mar 20, 2024 11:36 am