# noneOf

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

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

## Signature

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

## Description

Returns `true` only if all provided boolean values are `false`. Equivalent to logical NOR.

This function is useful for checking if none of multiple conditions apply.

```taxi
// Check if a user has no permissions
type NoPermissions inherits Boolean by noneOf(IsAdmin, IsEditor, IsViewer)
```

## Examples

Returns `true` when all provided boolean conditions are `false`. Uses type-based access to combine semantic boolean types.

Schema:

```taxi
type IsAdmin inherits Boolean
type IsEditor inherits Boolean
type IsViewer inherits Boolean
model User {
   username: Username inherits String
   isAdmin: IsAdmin
   isEditor: IsEditor
   isViewer: IsViewer
}
```

Query:

```taxi
given {
   user: User = {
      username: 'GuestUser',
      isAdmin: false,
      isEditor: false,
      isViewer: false
   }
}
find {
   username: Username
   hasNoAccess: Boolean = noneOf(IsAdmin, IsEditor, IsViewer)
}
```

Result:

```json
{
  "username": "GuestUser",
  "hasNoAccess": true
}
```
