summaryrefslogtreecommitdiffstats
path: root/test/04-function-and-boolean.txt
blob: f1b3241e792cea58b955cfcaa115ae8a83933af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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