Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15133

Scripting • Re: Error handling in RouterOS 7 Scripting (ROS7)

$
0
0
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:
Code:
{:local ver [:tonum [:pick [/system resource get version] 0 1]] :put $ver}

Statistics: Posted by Jotne — Wed Mar 20, 2024 11:36 am



Viewing all articles
Browse latest Browse all 15133

Trending Articles