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

# Some

# \$some

The `$some` operator checks if at least one element in an array satisfies a provided condition.

## Input

* An array containing an array to check and a condition to evaluate for each element

## Output

* `true` if at least one element satisfies the condition, `false` otherwise

## Examples

### Check If Any Number Is Even

```json theme={null}
{
  "$some": [
    [1, 2, 3, 5],
    {
      "$eq": [
        {
          "$mod": [
            {
              "$var": ["current"]
            },
            2
          ]
        },
        0
      ]
    }
  ]
}
```

Result: `true`

### Check If Any Object Has Age Over 30

```json theme={null}
{
  "$some": [
    [
      {"name": "Alice", "age": 25},
      {"name": "Bob", "age": 30},
      {"name": "Charlie", "age": 35}
    ],
    {
      "$gt": [
        {
          "$var": ["current"]
        },
        {
          "$input": "age"
        },
        30
      ]
    }
  ]
}
```

Result: `true`
