> For the complete documentation index, see [llms.txt](https://docs.atfinity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.atfinity.io/rule-language/operators/list-operators/some.md).

# SOME

### Description

With `SOME`, you evaluate if any value in the list is true.

### Simple Examples

```
SOME([true, true, false])
```

This evaluates to true, since one of the values in the list is true.

### Example with properties

```
SOME(
    get_properties(
        instances(Person), 'is_onboarded'
    )
)
```

In this example, we go over all the people in the current case and retrieve their value `'is_onboarded'`. If any of these values are true, the whole expression is true. Thus, this evaluates to true if anybody in the case has already been onboarded.

### How to check of other things than true

To check if there is anything else in the list, just first use a map to change the elements in the list to what you want to check for:

```
SOME(MAP(['high', 'high', 'medium'], CURRENT = 'high'))
```

This checks if any element in the list is "high".

### Empty lists

`SOME([])` evaluates to `false`. When there are no elements to check, the condition "some element satisfies the property" is vacuously false: there is nothing there that could make it true. Put differently, `false` is the identity for logical OR: starting from `false` and folding with OR over zero elements leaves the result at `false`.

This means a check like `SOME(get_properties(instances(Person), 'is_onboarded'))` returns `false` when there are no `Person` instances in the case.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.atfinity.io/rule-language/operators/list-operators/some.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
