diff options
author | Christian Hesse <mail@eworm.de> | 2023-11-30 12:02:51 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-11-30 13:51:57 +0100 |
commit | c6bf722e49c55af3a4d870f2fdca1460ece2bc1b (patch) | |
tree | 214e2d967cf1cb3ef5428dd632ac7116823db8ac /global-functions.rsc | |
parent | 495eff48de7f825ea013609f5de0c42330db163e (diff) |
global-functions: introduce $MIN
Diffstat (limited to 'global-functions.rsc')
-rw-r--r-- | global-functions.rsc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 709a615..d4f5ebf 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -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 ]; |