mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 17:28:59 +02:00
global-functions: introduce $MIN
This commit is contained in:
parent
495eff48de
commit
c6bf722e49
1 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global LogPrintOnce;
|
:global LogPrintOnce;
|
||||||
:global MAX;
|
:global MAX;
|
||||||
|
:global MIN;
|
||||||
:global MkDir;
|
:global MkDir;
|
||||||
:global NotificationFunctions;
|
:global NotificationFunctions;
|
||||||
:global ParseDate;
|
:global ParseDate;
|
||||||
|
@ -687,6 +688,12 @@
|
||||||
:return $2;
|
:return $2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# get min value
|
||||||
|
:set MIN 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