> For the complete documentation index, see [llms.txt](https://docs.discordbotstudio.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discordbotstudio.org/response-nodes/variable-category.md).

# Variable Category

Variables are important tools in creating a useful Discord bot. Variables in Discord Bot Studio can be leveraged in a similar way to traditional programming. Use the nodes in this category to interact with variables. You can also insert a variable value into most fields using the **Insert Variable** button next to the field.

There are three types of variables: temporary, server, and global.&#x20;

**Temporary** variables are stored for the duration that the bot is running. They are not saved to file and will be deleted when the bot goes offline. They are per-server.&#x20;

**Server** variables operate exactly like temporary variables, but they are saved to file and thus persist even if the bot is restarted.&#x20;

**Global** variables are also saved to file and are persistent. They differ from server variables because they are not specific to a certain server; i.e. they can be used by the bot across all servers that it's in.

{% content-ref url="/pages/-Mgd6cEwbXdVXrdlTRzO" %}
[Store Value in Variable](/response-nodes/variable-category/store-value-in-variable.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MiHgLAU029cbir43k\_M" %}
[Edit Variable](/response-nodes/variable-category/edit-variable.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MjHQ1ozGeSY8ZwwW-PT" %}
[Check Variable Value](/response-nodes/variable-category/check-variable-value.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MjHRF5xNbqXPLLjIAnx" %}
[Check if Variable Exists](/response-nodes/variable-category/check-if-variable-exists.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MjHRig0WtNtsJTMfc3u" %}
[Generate Random Number](/response-nodes/variable-category/generate-random-number.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MjHSzBBfGel9xq7OP0P" %}
[Get Mentioned User](/response-nodes/variable-category/get-mentioned-user.md)
{% endcontent-ref %}
