Skip to content

Glossary: Go Basics

Comparison operators

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

Operators such as `==`, `!=`, `<` and `>=` that compare two values and give a `bool`. A single `=` stores a value, while `==` compares.

Where the book teaches it

Related terms

bool&& , || , ! (logical operators)