> For the complete documentation index, see [llms.txt](https://golua.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://golua.fatality.win/documentation/datatypes/checkbox.md).

# checkbox

{% hint style="info" %}
Inherits all [control ](/documentation/datatypes/control.md)functions
{% endhint %}

## Functions

### get

```lua
local item = gui.checkbox('lua>elements a>test', 'lua>elements a', 'Test checkbox')
print(item:get());
```

#### Returns:

| [Value](/documentation/datatypes/control.md) | [Datatype](/documentation/datatypes/control.md) |
| :------------------------------------------: | :---------------------------------------------: |
|                     value                    |                     boolean                     |

### set

```lua
local item = gui.checkbox('lua>elements a>test', 'lua>elements a', 'Test checkbox')
iteam:set(true)
```

| [Parameter](/documentation/datatypes/control.md) | [Datatype](/documentation/datatypes/control.md) | [Description](/documentation/datatypes/control.md) |
| :----------------------------------------------: | :---------------------------------------------: | :------------------------------------------------: |
|                       value                      |                     boolean                     |                      new value                     |
