Skip to content

Glossary: C# Basics

Comparison operators

Also written: ==, !=, <=, >=, comparison

Six operators (`==`, `!=`, `<`, `>`, `<=`, `>=`) that compare two values and give a `bool`. One `=` stores a value; two `==` compare.

Where the book teaches it

Related terms

boolif statement