> ## 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>

<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.
</Warning>

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)?`:

<img src="https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/create-variable.png?fit=max&auto=format&n=CPTmXSRcXIGlG-eS&q=85&s=0979fa585f9b9565620f846626513b77" alt="Variable creation modal" width="1218" height="942" data-path="img/keywords/create-variable.png" />

Then, lets use it in a keyword:

<img src="https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/variable-definition.png?fit=max&auto=format&n=CPTmXSRcXIGlG-eS&q=85&s=3fd3d479e72ed5bcbba2dccf2a405fd4" alt="Defining variable in keyword" width="462" height="282" data-path="img/keywords/variable-definition.png" />

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

<img src="https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/variable-test-1.png?fit=max&auto=format&n=CPTmXSRcXIGlG-eS&q=85&s=3d65f51bf2607500cbd85bdb70d144ad" alt="First variable test" width="1828" height="1372" data-path="img/keywords/variable-test-1.png" />

<img src="https://mintcdn.com/fossadev/CPTmXSRcXIGlG-eS/img/keywords/variable-test-2.png?fit=max&auto=format&n=CPTmXSRcXIGlG-eS&q=85&s=60a1b153215b3227aa6ab853e04d2164" alt="Second variable test" width="1816" height="1362" data-path="img/keywords/variable-test-2.png" />


## Related topics

- [Variables](/docs/variables/index.md)


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