Relational operators

Top  Previous  Next

Scripts > Class elements and c++ instructions > Interpreted C++ instructions > Operators > Relational operators

 

Syntax

 

relational-expression  <   shift-expression

 

relational-expression  >   shift-expression

relational-expression  <=  shift-expression

 

relational-expression  >=  shift-expression

 

Remarks

 

Use relational operators to test equality or inequality of expressions. If the statement evaluates to be true it returns a nonzero character; otherwise it returns false (0).

 

>        greater than

<        less than

>=        greater than or equal

<=        less than or equal

 

In the expression

 

E1 <operator> E2

 

the operands must be both of arithmetic type.

 



This page belongs to the TextTransformer Documentation

Home  Content  German