DADiSP Worksheet Functions > Function Categories > Query Functions > ISEQUAL
Compares two or more inputs for equality.
ISEQUAL(val1, val2, val3, ..., valN)
valN |
- |
Two or more string, series or scalar values to test. |
An integer, 1 if all inputs are equal, else 0.
a = {{1, 2, 3},
{4, 5, 6}};
b = {{1, 2, 3},
{4, 5, 6}};
c = {{4, 5, 6},
{1, 2, 3}};
isequal(a, b) == 1
isequal(a, c) == 0
isequal(a, b, c) == 0
a = "test";
b = "test";
c = "Test";
isequal(a, b) == 1
isequal(a, c) == 0
isequal(a, b, c) == 0
a = 100;
b = 100.0;
c = {100};
isequal(a, b) == 1
isequal(a, c) == 1
isequal(a, b, c) == 1
a = "test";
b = 100;
c = "test";
d = 100;
isequal(a, b) == 0
isequal(a, c) == 1
isequal(a, b, c) == 0
isequal(a, b, c, d) == 0
isequal(b, c) == 0
isequal(b, d) == 1
ISEQUAL returns 0 for inputs of mixed strings and numerics.
Strings are compared on a case sensitive basis.
All scalars are converted to single point series for comparison.