aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc7
1 files changed, 7 insertions, 0 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 876f2cd..709a615 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -48,6 +48,7 @@
:global IsTimeSync;
:global LogPrintExit2;
:global LogPrintOnce;
+:global MAX;
:global MkDir;
:global NotificationFunctions;
:global ParseDate;
@@ -680,6 +681,12 @@
$LogPrintExit2 $Severity $Name $Message false;
}
+# get max value
+:set MAX do={
+ :if ($1 > $2) do={ :return $1; }
+ :return $2;
+}
+
# create directory
:set MkDir do={
:local Path [ :tostr $1 ];