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

# Lte

# \$lte

The `$lte` operator checks if the first value is less than or equal to the second value.

## Input

* An array containing exactly two values to compare

## Output

* `true` if the first value is less than or equal to the second value
* `false` otherwise (including when either value is null)

## Examples

### Less Than

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

Result: `true`

### Equal Values

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

Result: `true`

### Greater Than (Returns False)

```json theme={null}
{
  "$lte": [
    7,
    3
  ]
}
```

Result: `false`

### Field Value Comparison

```json theme={null}
{
  "$lte": [
    {
      "$input": "price"
    },
    100
  ]
}
```

Result: `true` if the price field is less than or equal to 100, otherwise `false`
