# Update Local Variable

> Set a local variable to a new value.

- ID: `update_local_variable`
- Type: Block
- Category: [Utilities](https://inventor.bot/docs/reference/blocks/utilities.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `variable` | yes | The local variable to update. | a local variable, e.g. `count` |
| `value` | yes | The new value to set. | e.g. `"Hello"` |

**Example**

```go
var count = 0

count = "Hello"
```