# Tag To

The "Tag To" function block is a utility that allows you to reference values from another function block tagged with the corresponding "Tag From" block. This helps in managing data flow between different components within the system.

## 📥 Inputs <a href="#inputs" id="inputs"></a>

This function block does not have any inputs.

## 📤 Outputs <a href="#outputs" id="outputs"></a>

`Generic` This output provides the referenced data based on the specified tag corresponding to a "Tag From" function block.

## 🕹️ Controls <a href="#controls" id="controls"></a>

`Enter a string` A text input field where you can specify the tag name that you want to reference. It is essential that this string matches the tag specified in a "Tag From" block to successfully retrieve the corresponding data.

## 🎨 Features <a href="#features" id="features"></a>

`Tag Referencing` Facilitates the process of linking data across different function blocks by referencing them through designated tags.

`Dynamic Retrieval` Automatically retrieves data in real-time from the relevant "Tag From" block when the tag string matches.

## 📝 Usage Instructions <a href="#usage" id="usage"></a>

1. **Enter Tag Name**: In the text input field, type the name of the tag you wish to reference from the "Tag From" function block.
2. **Execute**: Run the function block by connecting it to other blocks. It will fetch data associated with the entered tag.

## 📊 Evaluation <a href="#evaluation" id="evaluation"></a>

When executed, this block checks for any existing "Tag From" function blocks that match the entered tag. If found, it outputs the corresponding data; if not found, it logs an error.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

<details>

<summary>Ensure Tags Match</summary>

Make sure that the string you enter exactly matches the tag used in the "Tag From" block. Any discrepancies, including leading or trailing spaces, will result in a failure to retrieve data.

</details>

<details>

<summary>Data Flow Management</summary>

Use multiple "Tag To" blocks to reference the same "Tag From" block for managing data flow across various components without duplicating data.

</details>

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

<details>

<summary>Error: Function block not found</summary>

If you receive an error stating that the "Tag From" function block cannot be found, double-check that the tag name you entered is correct and that a corresponding "Tag From" block exists in the scene with the same tag.

</details>
