# SetVariable

Sets a variable in the name parameter to the value of the value parameter.

## Method Signature

```
SetVariable(name=[string], value=[any])
```

### Arguments

| Argument | Type     | Required | Description                       | Default |
| -------- | -------- | -------- | --------------------------------- | ------- |
| `name`   | `string` | `true`   | The name of the variable to set.  |         |
| `value`  | `any`    | `true`   | The value to set the variable to. |         |

## Examples

## Related

* [GetClientVariablesList](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/getclientvariableslist)
* [GetComponentMetadata](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/getcomponentmetadata)
* [GetContextRoot](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/getcontextroot)
* [GetFunctionData](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/getfunctiondata)
* [GetTagData](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/gettagdata)
* [GetVariable](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/getvariable)
* [ObjectLoad](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/objectload)
* [ObjectSave](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/objectsave)
* [Throw](https://boxlang.ortusbooks.com/boxlang-framework/modularity/compat-cfml/reference/built-in-functions/system/throw)
