> ## 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.

# Ne

# \$ne

The `$ne` operator checks if two values are not equal.

## Input

* An array containing exactly two values to compare

## Output

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

## Examples

### Basic Inequality

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

Result: `true`

### Equality (Returns False)

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

Result: `false`

### Comparing Field Values

```json theme={null}
{
  "$ne": [
    {
      "$input": "status"
    },
    "inactive"
  ]
}
```

Result: `true` if the status field is not "inactive", otherwise `false`

### Number Comparison

```json theme={null}
{
  "$ne": [
    {
      "$input": "count"
    },
    0
  ]
}
```

Result: `true` if the count field is not equal to 0, otherwise `false`
