Added MIN and MAX functions for operand.

This commit is contained in:
Brad Arant committed 2025-11-24 12:15:56 -08:00
1 parent c21f27f14d
commit 3314a410e0
2 files changed
+66 -2

No files matched your search

+10
View File
@@ -64,9 +64,19 @@
</for>
<call error="rc" pgm="/usr/bin/ls" arg1="-al" name="ls" />
$[rc]
<set name="max" expr="max(1, 2, 3, 4, 5, 4, 3, 2, 1)" />
max=$[max]
<set name="max" expr="max('A', 'B', 'C', 'D', 'E', 'D', 'C', 'B', 'A')" />
max=$[max]
<set name="min" expr="min(1, 2, 3, 4, 5, 4, 3, 2, 1)" />
min=$[min]
<set name="min" expr="min('A', 'B', 'C', 'D', 'E', 'D', 'C', 'B', 'A')" />
min=$[min]
<comment>
$[ls]
<read file="../compile" name="file" />
$[file]
</comment>
<comment>
<whiledir path="/var/www" filename="file" fullpath="fullpath" filenamenoextension="noext" sort="true">
$[file] $[fullpath] $[noext]