mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 02:04:56 +02:00
global-functions: $ValidateSyntax: :do ... on-error=... -> :onerror ... do=...
This commit is contained in:
parent
12926b7c42
commit
f5c4378676
1 changed files with 2 additions and 2 deletions
|
@ -1652,9 +1652,9 @@
|
|||
:set ValidateSyntax do={
|
||||
:local Code [ :tostr $1 ];
|
||||
|
||||
:do {
|
||||
:onerror Err {
|
||||
[ :parse (":local Validate do={\n" . $Code . "\n}") ];
|
||||
} on-error={
|
||||
} do={
|
||||
:return false;
|
||||
}
|
||||
:return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue