global-functions: introduce $MIN

This commit is contained in:
Christian Hesse 2023-11-30 12:02:51 +01:00
parent 495eff48de
commit c6bf722e49

View file

@ -49,6 +49,7 @@
:global LogPrintExit2;
:global LogPrintOnce;
:global MAX;
:global MIN;
:global MkDir;
:global NotificationFunctions;
:global ParseDate;
@ -687,6 +688,12 @@
:return $2;
}
# get min value
:set MIN do={
:if ($1 < $2) do={ :return $1; }
:return $2;
}
# create directory
:set MkDir do={
:local Path [ :tostr $1 ];