aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions.rsc7
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 ];