# Set a unique variable

The Set a unique variable action block will allow you to create and store data for the commands execution, upon finishing the command cycle the variable and all data stored inside will be deleted. This can be incredibly useful for storing IDs and using them after another button press/selection from a select menu.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FJxiLB11gVEIJadJiLrO6%2Fimage.png?alt=media&#x26;token=07f5c1c3-a75c-4644-9cf6-618496faad8c" alt=""><figcaption></figcaption></figure>

### Settings

Here you can setup the variable by choosing the name and data you wish to store in it.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FYk6bOeeib6ME7VcTyvBi%2Fimage.png?alt=media&#x26;token=5857f4a2-f0e3-4506-b03c-9729d3c757ff" alt=""><figcaption></figcaption></figure>

**Variable:** Here you can set the name for the variable, spaces are replaced by a underscore the same way they are in the Data Storage module.

**Value:** Here you can set the data to be stored in the variable which you can call at a later point in the command execution. All variables can be used here just like a regular data variable.

**Unique Variable:** Here you can find the unique reference variable which you can use to display the data stored in this variable, you can also use this as a reference in a [comparison condition](https://botghost.com/docs/~/changes/zT1fjHAwQ21lXOKdCcfT/custom-commands-and-events/conditions) or other action blocks which allow the use of variables.
