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

# Variables

> [!WARNING]
>
> **Disabling the variable will disable the phrase group entirely.**
>
> For example, the below keyword phrase group will *not* work if I disable the variable. All other phrases within the group are ignored.

> [!WARNING]
>
> **Deleting the variable will disable the phrase group entirely.**
>
> For example, the below keyword phrase group will *not* work if I delete the variable. All other phrases within the group are ignored.

Variables provide a way for you to define common phrases within multiple keywords. By using the `var:` flag on a phrase, it will reference the stored variable value when parsing your keyword phrase.

For example, lets define a variable with a key of `myKey`, and a value of `regex:abc(123)?`:

![Variable creation modal](https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/create-variable.png?fit=max\&auto=format\&n=CPTmXSRcXIGlG-eS\&q=85\&s=0979fa585f9b9565620f846626513b77)

Then, lets use it in a keyword:

![Defining variable in keyword](https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/variable-definition.png?fit=max\&auto=format\&n=CPTmXSRcXIGlG-eS\&q=85\&s=3fd3d479e72ed5bcbba2dccf2a405fd4)

You are now able to match `test abc` or `test abc123` in your keyword:

![First variable test](https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/variable-test-1.png?fit=max\&auto=format\&n=CPTmXSRcXIGlG-eS\&q=85\&s=3d65f51bf2607500cbd85bdb70d144ad)

![Second variable test](https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/variable-test-2.png?fit=max\&auto=format\&n=CPTmXSRcXIGlG-eS\&q=85\&s=60a1b153215b3227aa6ab853e04d2164)


## Related topics

- [Variables](https://fossabot.com/docs/variables/index.md)
- [$(references)](https://fossabot.com/docs/variables/references.md)
- [$(count)](https://fossabot.com/docs/variables/count.md)
- [$(sender)](https://fossabot.com/docs/variables/sender.md)
- [$(youtube)](https://fossabot.com/docs/variables/youtube.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.