---
url: /process-functions/script-variableset.md
description: Sets a model variable, creating it if needed.
---

# script.variableSet

Sets a model variable, creating it if it doesn't exist.

```js
script.variableSet(key, value, runFeeders)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `key` | `string` | The variable's name. |
| `value` | `string` | The value to set. |
| `runFeeders` | `boolean` | Optional. `false` to skip running feeders after the change, such as when setting several variables. Defaults to `true`. |

## Examples

```js
script.variableSet("Current Month", "2014 - Jan");
```

## Related

* [script.variableGet](/process-functions/script-variableget)
* [script.variableDelete](/process-functions/script-variabledelete)
