> For the complete documentation index, see [llms.txt](https://hiveminddocs.gitbook.io/hivemind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/buildable/tag-qualifier-conditions.md).

# Tag Qualifier Conditions

### Overview of Tag Qualifier Conditions

Tag Qualifier Conditions allow you to add conditional tags to a buildable, enhancing its functionality based on specific criteria. To implement a Tag Qualifier Condition, you need to subclass the `TagQualifierCondition` class. Below are the main functions and their purposes, organized by category.

## Initialization

* **`PostInitialize()`**\
  This function is used to set up events, bindings, or dispatchers for the tag qualifier. It prepares the Tag Qualifier Condition for usage and can also bind events for tag removal.

## Tag Management

* **`AddTags()`**\
  Adds the tags specified in the `FGameplayTagContainer`'s `TagsToAdd` property.
* **`RemoveTags()`**\
  Removes the tags specified in the `TagsToAdd` property.

## Buildable Reference

* **`GetOwningBuildable()`**\
  Returns the buildable that the tag qualifier is associated with, providing a reference to the owning buildable.

## Tag Qualification

* **`IsTagQualified()`**\
  This function returns `true` by default but can be overridden to customize the conditions under which the tag is applied. *(Note: This function may be removed in future updates.)*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/buildable/tag-qualifier-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
