---
url: /process-functions/script-variableset.md
description: Sets or creates a variable in the Model.
---

# script.variableSet

Sets or creates a variable in the Model.

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

#### Parameters

* `key` - An identifier for the variable.
* `value` - The value to set the variable to.

#### Example

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