# anyOf

Source: https://taxilang.org/docs/language/stdlib/anyOf

**Full name:** `taxi.stdlib.anyOf`

## Signature

```taxi
declare function anyOf(values:Boolean...): Boolean
```

## Description

Returns `true` if at least one of the provided boolean values is `true`. Equivalent to logical OR.

This function evaluates multiple conditions and returns true if any of them are true.

```taxi
// Check if a user has any account verification
type IsVerified inherits Boolean by anyOf(HasEmailVerification, HasPhoneVerification, HasIdVerification)
```

## Examples

Returns `true` when at least one of the provided boolean conditions is `true`. Define a computed type in the schema using `anyOf` for reuse across queries.

Schema:

```taxi
model User {
   name: String
   hasEmailVerification: HasEmailVerification inherits Boolean
   hasPhoneVerification: HasPhoneVerification inherits Boolean
   hasIdVerification: HasIdVerification inherits Boolean
}
type IsVerified inherits Boolean by anyOf(HasEmailVerification, HasPhoneVerification, HasIdVerification)
```

Query:

```taxi
given {
   user: User = {
      name: 'Alice',
      hasEmailVerification: false,
      hasPhoneVerification: true,
      hasIdVerification: false
   }
}
find {
   name: user.name
   isVerified: IsVerified
}
```

Result:

```json
{
  "name": "Alice",
  "isVerified": true
}
```
