> For the complete documentation index, see [llms.txt](https://tailwindsdocs.innovativesol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailwindsdocs.innovativesol.com/readme/utilities/set-get-variable.md).

# Set/Get Variable

If you are running a Custom Function, or LLM Chain, you might want to reuse the result in other nodes without having to recompute/rerun the same thing again. You can save the output result as a variable, and reuse it for other nodes that is further down the flow path.

<figure><img src="/files/UZ2pc1upNY97D9E8E4ni" alt=""><figcaption></figcaption></figure>

### Set Variable

Taking inputs from any node that outputs `string, number, boolean, json, array,` we can assign a variable name to it.

<figure><img src="/files/TbVY5uBfNMSlCIjvGSkF" alt="" width="270"><figcaption></figcaption></figure>

### Get Variable

You can get the variable value from the variable name at a later stage:

<figure><img src="/files/3lKSQ9aWvMjwwuZHkOiu" alt="" width="563"><figcaption></figcaption></figure>
