Contents Up << >>

Relational operators

The relational operators are =, /=, <, <=, > and >= with their usual meanings (/= denotes the not equal operator). The result of all these operators is a boolean value, true or false. The arguments to the = and /= operators may be of any type. The arguments of the <, <=, > and >= operators may be any scalar or one-dimensional array of a discrete type. If the arguments are one-dimensional arrays, then the arguments must be the same length and the result is true only if the relation is true for each corresponding element of the array arguments.