2.9 Logical Operators

2 min readApr 16, 2022

You can check this course on my website.

Before you start reading, I want to ask you to like this article, so I will know that my work helps you ❤️

Logical Operators accept bool values as operands and return bool.

  • && — Conditional logical AND operator. If both operands are true, returns true, otherwise false.
  • || — Conditional logical OR operator. If one of the operands is true, returns true, otherwise false.
  • ! — Logical negation operator. Performed on a single operand and returns true if the operand is false and vice versa.

Summary — Operators Precedence and Associativity (Article in progress)


Previous article -> 2.8 Comparison Operators

Next article -> 2.10 Operators Precedence and Associativity

Join to our community in Telegram — https://t.me/itifico

If you want to support me, you can buy me a coffee. I send all donations to support the army of Ukraine.

Donations list:

  1. Dinesh Chintalapudi — 3$
  2. Unknown — 5$
  3. Neisy — 3$
  4. Unknown — 3$




Full Stack Developer who is inspired by new technologies