> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xano.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Variable

Update Variable is used to change the contents of an existing variable.

<Frame>
  <iframe src="https://demo.arcade.software/7SeeVJAqKYwcMrOrFIbD?embed" title="https://demo.arcade.software/7SeeVJAqKYwcMrOrFIbD?embed" allowFullScreen allow="clipboard-write" class="contentkit-webframe" width="1000" height="500" />
</Frame>

<Steps>
  <Step title="Add an Update Variable function to your function stack." />

  <Step title="Select the variable you want to update.">
    You can start typing the variable name, or click the dropdown to select it from the list.
  </Step>

  <Step title="You can update the variable as a whole, or use dot notation to target a specific piece of data inside of it.">
    For example, if we have an **author** variable, and want to update the author's name, our dot notation might look like this:

    ```
    author.name
    ```
  </Step>
</Steps>
