# IsDefineConstraintsCompatible(string[], string[])

> Allows you to test whether the specified #define constraints are satisfied by the specified list of #define directives.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Compilation](/engine/6000.0/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor

```csharp
public static bool IsDefineConstraintsCompatible(string[] defines, string[] defineConstraints)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string array of #define directives.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): A string array of #define directives to to check compatibility against.

### Returns

| Type                                                          | Description                                                                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the specified #define constraints are satisfied by the specified #define directives. Otherwise returns False. |

### Remarks

Additional Resources: [Assembly](/engine/6000.0/script-reference/unityeditor/compilation/assembly.md), [CompilationPipeline](/engine/6000.0/script-reference/unityeditor/compilation/compilationpipeline.md).
