# DoesNotHaveFlags

> Gets whether or not all of the specified flags are not set on any hierarchy node.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.5/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

## DoesNotHaveFlags(HierarchyNodeFlags)

Gets whether or not all of the specified flags are not set on any hierarchy node.

```csharp
public bool DoesNotHaveFlags(HierarchyNodeFlags flags)
```

### Parameters

**** (\[HierarchyNodeFlags]\(/engine/6000.5/script-reference/unity/hierarchy/hierarchynodeflags)): The hierarchy node flags.

### Returns

| Type                                                          | Description                                                              |
| ------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if none of the node have all of the flags set, `false` otherwise. |

## DoesNotHaveFlags(HierarchyNode, HierarchyNodeFlags)

Gets whether or not all of the specified flags are not set on the hierarchy node.

```csharp
public bool DoesNotHaveFlags(in HierarchyNode node, HierarchyNodeFlags flags)
```

### Parameters

**** (\[HierarchyNode]\(/engine/6000.5/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node.**** (\[HierarchyNodeFlags]\(/engine/6000.5/script-reference/unity/hierarchy/hierarchynodeflags)): The hierarchy node flags.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if all of the flags are not set, `false` otherwise. |
