Contents  Previous  Next  Subchapters 
Syntax 
left value < right value left value > right value left value <= right value left value >= right value

(less than)
(greater than)
(less than or equal to)
(greater than or equal to)

See Also  elementbyelement order and string == 
If the left and right values are character row vectors
the first element of the left value that is not equal to the
corresponding element of the right value determines the result
of the ordered comparison.
Trailing spaces in the values are ignored.
x = "abc"
y = "aaz"
print x > y
OMatrix will respond
T
because the ASCII value of the second element of
x is greater than the ASCII value of the second
element of y.
If all of the elements of a string are equal to the
corresponding elements of a longer string,
the longer string is considered to be "greater." Thus, if you enter
x = "abc"
y = "abcd"
print x < y
OMatrix will respond
T
because y is longer, and thus "greater", than x.
v = {"one ", "one A"}
w = {"one", "one"}
v > w
OMatrix will respond
{
F
T
}
because the vectors "one "
and "one"
are
considered equal while the vector "one A"
is considered
greater than the vector "one"
.
v = {"one ", "one A"}
v > "one"
OMatrix will respond
{
F
T
}