C# comparison operators and analysis

Article Directory

  • Blogger writing is not easy, kids need your encouragement
  • Thousands of waters and thousands of mountains are always in love, so please click a like first.

The result of the comparison operator is logical (bool), that is, True or False .
The comparison operator is also called the relational operator. We can understand it as a kind of judgment . The result of the judgment is true or false . The return value of the relational expression is always Boolean .
That is, mainly for comparison operator compares two operands and to give a Boolean type value .

Operator Description
> Compare whether one number is greater than another
< Compare whether one number is less than another
>= Compare whether one number is greater than or equal to another
<= Compare whether one number is less than or equal to another number
  • About the blogger:
  • Industrial automation upper computer software engineer, machine vision algorithm engineer, motion control algorithm engineer. Currently working in the intelligent manufacturing automation industry. Blogger's mailbox: [email protected]
  • Help me like it. Haha.

Guess you like

Origin blog.csdn.net/cashmood/article/details/109159410