# Editor.ConsoleSystem.GetValue

```csharp
static string GetValue(string name, string defaultValue = null)
```

Get a convar value as a string

### Parameters

- `name` (`string`)
- `defaultValue` (`string`), default `null`

### Returns

`string`

Declared in [Editor.ConsoleSystem](/api/Editor.ConsoleSystem).
Assembly: `Sandbox.Tools`.
