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

# Lt

# \$lt

The `$lt` operator checks if the first value is less than the second value.

## Input

* An array containing exactly two values to compare

## Output

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

## Examples

### Basic Comparison

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

Result: `true`

### False Comparison

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

Result: `false`

### Field Value Comparison

```json theme={null}
{
  "$lt": [
    {
      "$input": "temperature"
    },
    0
  ]
}
```

Result: `true` if the temperature field is less than 0, otherwise `false`

### String Comparison

```json theme={null}
{
  "$lt": [
    "apple",
    "zoo"
  ]
}
```

Result: `true` (lexicographic comparison)
