mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-28 14:54:51 +02:00
global-functions: introduce $MAX
This commit is contained in:
parent
080bef89a9
commit
495eff48de
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
||||||
:global IsTimeSync;
|
:global IsTimeSync;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global LogPrintOnce;
|
:global LogPrintOnce;
|
||||||
|
:global MAX;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global NotificationFunctions;
|
:global NotificationFunctions;
|
||||||
:global ParseDate;
|
:global ParseDate;
|
||||||
|
@ -680,6 +681,12 @@
|
||||||
$LogPrintExit2 $Severity $Name $Message false;
|
$LogPrintExit2 $Severity $Name $Message false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# get max value
|
||||||
|
:set MAX do={
|
||||||
|
:if ($1 > $2) do={ :return $1; }
|
||||||
|
:return $2;
|
||||||
|
}
|
||||||
|
|
||||||
# create directory
|
# create directory
|
||||||
:set MkDir do={
|
:set MkDir do={
|
||||||
:local Path [ :tostr $1 ];
|
:local Path [ :tostr $1 ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue