summaryrefslogtreecommitdiffstats
path: root/test/04-function-and-boolean.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/04-function-and-boolean.txt')
-rw-r--r--test/04-function-and-boolean.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/04-function-and-boolean.txt b/test/04-function-and-boolean.txt
new file mode 100644
index 0000000..f1b3241
--- /dev/null
+++ b/test/04-function-and-boolean.txt
@@ -0,0 +1,25 @@
+%% AND function with boolean values.
+%mode init
+A1:true
+A2:true
+A3:false
+A4:true
+A5:true
+B1=AND(A1)
+B2=AND(A1:A2)
+B3=AND(A1:A3)
+B4=AND(A1:A10)
+B5=AND(A4:A10)
+B6=AND(A3,A4,A5)
+B7=AND(A1,A4)
+%calc
+%mode result
+B1=true
+B2=true
+B3=false
+B4=false
+B5=true
+B6=false
+B7=true
+%check
+%exit