> For the complete documentation index, see [llms.txt](https://docs.flowiseai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowiseai.com/integrations/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/ptIKC783Uj4zuyhRcuGG" 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/yr9m6tFmP5k6s9ruF7EF" 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/655iRmgifCRn2WYgq8fk" alt="" width="563"><figcaption></figcaption></figure>
