# sam.Config.get

> #### [**any**](https://wiki.facepunch.com/gmod/any) **sam.Config.get(** [**string**](https://wiki.facepunch.com/gmod/string) ke&#x79;**,** *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [**any**](https://wiki.facepunch.com/gmod/any) **default\_return&#x20;*****=*** [***nil***](https://wiki.facepunch.com/gmod/nil) **)**

## Description

Get a config's value, if it's nil then **default\_return** will be returned.

## Aguments

1. #### [**string**](https://wiki.facepunch.com/gmod/string) key
2. #### *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [**any**](https://wiki.facepunch.com/gmod/any) **default\_return&#x20;*****=*** [***nil***](https://wiki.facepunch.com/gmod/nil)

## Returns

1. #### [**any**](https://wiki.facepunch.com/gmod/any)
