Equality operators

Top  Previous  Next

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


There are two equality operators: == and !=. They test for equality and inequality between arithmetic values or strings, following rules very similar to those for the relational operators.



Notice that == and != have a lower precedence than the relational operators < and >, <=, and >=. Also, == and != can compare the string type for equality and inequality where the relational operators would not be allowed.


The syntax is





       equality-expression == relational-expression


equality-expression != relational-expression

This page belongs to the TextTransformer Documentation

Home  Content  German