> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metrics-man.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Eq

# \$eq

The `$eq` operator checks if two values are equal.

## Input

* An array containing exactly two values to compare

## Output

* `true` if the two values are equal
* `false` if the two values are not equal

## Examples

### Basic Equality

```json theme={null}
{
  "$eq": [
    5,
    5
  ]
}
```

Result: `true`

### Inequality

```json theme={null}
{
  "$eq": [
    "hello",
    "world"
  ]
}
```

Result: `false`

### Comparing Field Values

```json theme={null}
{
  "$eq": [
    {
      "$input": "status"
    },
    "active"
  ]
}
```

Result: `true` if the status field equals "active", otherwise `false`

### Number Comparison

```json theme={null}
{
  "$eq": [
    {
      "$input": "count"
    },
    10
  ]
}
```

Result: `true` if the count field equals 10, otherwise `false`
