# sam.Util.is\_valid\_gamemode

> #### [bool](https://wiki.facepunch.com/gmod/boolean) sam.Util.is\_valid\_gamemod&#x65;**(** [**string**](https://wiki.facepunch.com/gmod/string) **gamemode\_name )**

## Description

Check if gamemode exists or not.

## Aguments

1. #### [**string**](https://wiki.facepunch.com/gmod/string) **gamemode\_name**

## Returns

1. #### [bool](https://wiki.facepunch.com/gmod/boolean)

## Example

```lua
print(sam.Util.is_valid_gamemode("sandbox"))
-- output
true

print(sam.Util.is_valid_gamemode("sAnDbOx"))
-- output
true

print(sam.Util.is_valid_gamemode("meow meow me"))
-- output
false
```
