# 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="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-e44dcdab00131808ce0b126071eeef4cfd06d6ac%2Fsavereuse.png?alt=media" 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="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-39f86040be5e0cac6fd4d2cec00b26cdfb33a5bc%2Fimage%20(11)%20(1)%20(1)%20(1)%20(1)%20(1).png?alt=media" 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="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-11ba8b6bfe8b9248a79397f3e95f834ed9436c4e%2Fimage%20(12)%20(1)%20(2).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>
