# localValue

Stores and retrieves local values, like settings or something, that you want to have persistent on this specific browser. The value will be saved only for the browser you are currently working on. The value will be save in the scope of the current workspace you are working in.

### Parameters

1. key - Key name
2. value - (optional) value you want to save. If this is empty, brixxbox will return the value, you saved before.

This is **not** an asynchronous operation. **No await needed!**

### Example Usages

```javascript
   brixxApi.localValue("myKey", "Hello World"); //Save the value "Hello World" under the key "myKey"
   let x = brixxApi.localValue("myKey"); //Retrieve the Key "myKey". This will result in "Hello World"
   
   console.log(x)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/localvalue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
