
5.4.1.4.5 MAXL Relational and Equality Operators
The relational and equality operators determine equality, inequality, or relative values
of their operands. The relational operators are shown in the table below.
Table 5-4 Relational and Equality Operators
Operator Meaning
== Equal to
!= Not equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
5.4.1.4.5.1 Relational Operators
The binary relational operators determine the following relationships:
• Less than
• Greater than
• Less than or equal to
• Greater than or equal to
Syntax
relational-expression :
expression < expression
expression > expression
expression <= expression
expression >= expression
expression:
relational-expression
The relational operators have left-to-right associativity. Both operands of relational
operators must be of arithmetic type. They yield values of type int. The value returned
is 0 if the relationship in the expression is false; otherwise, it is 1.
Maestro Software Manual MAXL Program Language
MAN-MASSW (Ver. Q)
5-19
Comentários a estes Manuais