# Comparison Operators

say it: **“kum-PAIR-ih-sun OP-uh-ray-terz”** **/kəmˈpærɪsən ˈɑpəreɪtərz/**

Operators like \`-eq\`, \`-gt\`, \`-like\` and \`-match\`.

## What is **Comparison Operators**?

PowerShell uses word-like **comparison operators**: `-eq`, `-ne`, `-gt`, `-lt`, `-like` (wildcards), `-match` (regular expressions). They ignore case by default.

```powershell
5 -gt 3              # True
'Pancakes' -like 'Pan*' # True
'abc' -eq 'ABC'       # True (case-insensitive)
```

Level: Apprentice · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=2)

Updated: November 17, 2026

## In other subjects

- [Comparison Operators in C#](https://www.ask-codey.com/glossary/comparison-operators-c-sharp)
- [Comparison Operators in Java](https://www.ask-codey.com/glossary/comparison-operators-java)
- [Comparison Operators in JavaScript](https://www.ask-codey.com/glossary/comparison-operators-javascript)
- [Comparison Operators in MongoDB](https://www.ask-codey.com/glossary/comparison-operators-mongodb)
- [Comparison Operators in Python](https://www.ask-codey.com/glossary/comparison-operators)

Source: https://www.ask-codey.com/glossary/comparison-operators-powershell
