summaryrefslogtreecommitdiffstats
path: root/test/04-function-iserror.txt
blob: 5346e0d0b416cc250ef35218ba34790a4daaec2c (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
%% Test case for built-in ISERROR function.
%mode init
A1:10
A2=10/2
A3=2/0
A4=NonExistingName
B1=ISERROR(A1)
B2=ISERROR(A2)
B3=ISERROR(A3)
B4=ISERROR(A4)
C4=ISERROR(5.2)
C5=ISERROR("inline text")
C6=ISERROR(NA())
%calc
%mode result
B1=false
B2=false
B3=true
B4=true
C4=false
C5=false
C6=true
%check