Skip to content

Glossary: C# Basics

Logical operators (&&, ||, !)

Also written: &&, ||, and, or, not

`&&` means "and" (both sides true), `||` means "or" (at least one side true) and `!` means "not" (flips true and false). They combine conditions.

Where the book teaches it

Related terms

boolComparison operators