# Logical Operators

Operators that combine or reverse boolean conditions.

## What is **Logical Operators** in C#?

**Logical Operators** — Operators that combine or reverse boolean conditions.

```csharp
class Venue
{
    bool CanEnter(int age)
    {
        bool isAdult = age >= 18;
        bool isSenior = age >= 65;
        return isAdult && !isSenior;
    }
}
```

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/novice)

Updated: September 27, 2026

## In other subjects

- [Logical Operators in Java](https://www.ask-codey.com/glossary/logical-operators-java)
- [Logical Operators in JavaScript](https://www.ask-codey.com/glossary/logical-operators-javascript)

Source: https://www.ask-codey.com/glossary/logical-operators-c-sharp
