2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: optionBoolean
|
|
|
|
description: Boolean option
|
|
|
|
---
|
|
|
|
## Constructor: optionBoolean
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Boolean option
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|
|
|value|[Bool](../types/Bool.md) | Yes|Value of an option|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [OptionValue](../types/OptionValue.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$optionBoolean = ['_' => 'optionBoolean', 'value' => Bool, ];
|
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_":"optionBoolean","value":"Bool"}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
optionBoolean={_='optionBoolean', value=Bool, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|