# Locals

A **local value** assigns a name to an [expression](https://developer.hashicorp.com/terraform/language/expressions), so you can use the name multiple times within a module instead of repeating the expression.&#x20;

Brainboard allows you to define multiple locals.

{% hint style="success" %}
When you define locals in Brainboard, they are added to the `locals.tf` file and in the same block `locals`&#x20;
{% endhint %}

<figure><img src="https://2733077811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7YhVIZuz5Brv8kisTlFL%2Fuploads%2Fmj8JFl7dFljIJilYy0eR%2Fimage.png?alt=media&#x26;token=f27e747a-7f06-435f-b373-ea70758378f6" alt=""><figcaption></figcaption></figure>

*The table of locals is similar to the one of variables detailed above. Please refer to it to understand the different components of the user interface.*

#### Creating a new local

Click on the  `Add local` button to open the modal that allows you to specify the *<mark style="color:$primary;">Name</mark>, <mark style="color:$primary;">Description</mark>* and *<mark style="color:$primary;">Value</mark>* of the local.

<figure><img src="https://2733077811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7YhVIZuz5Brv8kisTlFL%2Fuploads%2FbJP6ufx7vdKdRlK24OEX%2Fimage.png?alt=media&#x26;token=2c7277c6-786d-43a1-a2cc-8fdb36213d17" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
If you are using a complex expression in the value field, you need to quote it as you can mix strings, functions, variables....
{% endhint %}
