|
Contents | Previous | Next | Subchapters |
| Syntax |
left value == right valueleft value <> right value
|
(equal)
(not equal)
|
| See Also | element-by-element == |
==)
and not equal (<>) operators return a logical column vector.
The i-th element of the return value corresponds to the comparison
between the i-th row of the left and right values.
O-Matrix considers two rows to be equal if they contain the
same characters in the same order not counting trailing spaces.
x = "string 1"
y = "string 2"
print x == y
O-Matrix will respond
F
v = {"one ", "two"}
w = {"one", "one"}
v == w
O-Matrix will respond
{
T
F
}
Note that the string "one "
is equal to the string "one" because the trailing space in
"one " is ignored.
v = {"one ", "two"}
v == "one"
O-Matrix will respond
{
T
F
}