7.3 Relational operators

7.3.1 Definition

Comparing operators are used to compare operands according to their equality,

inequality and size.

The operands always have to be of the same type.

The result of the operation is of the predefined type boolean .

7.3.2 Comment

The comparison of discrete array types is done by comparing the "left" values of the arrays. Vectors for example are aligned to the left and than compared. ("110" < "1000" results to false as only the first three bits are relevant)

7.3.3 Overview

Operator

Operation

Operand type

Result type

=

Equality

any

boolean

/=

Inequality

any

boolean

<   <=

>   >=


Comparison

any scalar type

or a array type


boolean