# Extension Conditions

{% hint style="warning" %}
This page is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice.
{% endhint %}

Extension Manifest Conditions enable you to declare requirements for an Extension before it becomes available.

## Utilizing Conditions in your Manifest

Conditions are referenced via their alias. The Declaration of a Condition is shown in the following example:

```typescript
const manifest = {
    type: 'workspaceView',
    ...
    conditions: [
        {
            alias: 'Umb.Condition.WorkspaceAlias',
            match: 'Umb.Workspace.Document',
        },
    ],
};
```

By declaring a condition the extension will become available only once the condition is permitted.

The example above requires the nearest Workspaces Alias to be equal to `'Umb.Workspace.Document'`.

When declaring multiple conditions all of them must be permitted for the extension to be available.

## Built-in Conditions Types

For a list of available options, see the [Built-in Conditions Types](/umbraco-cms/customizing/extending-overview/extension-types/condition.md#built-in-conditions-types) section.

## Condition Configuration

The conditions are defined as an array of condition configurations. Each entry can contain the following properties:

* `alias`- The alias of the condition to utilize.
* `...` - The rest of the properties of the object are specific to the condition configuration.

## Learn more

Learn about built-in conditions and how to create your own:

{% content-ref url="/pages/ZH4fnefl34CmNep3suXn" %}
[Extension Conditions](/umbraco-cms/customizing/extending-overview/extension-types/condition.md)
{% endcontent-ref %}


---

# Agent Instructions: 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:

```
GET https://docs.umbraco.com/umbraco-cms/customizing/extending-overview/extension-conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
