> For the complete documentation index, see [llms.txt](https://pahutyakv.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pahutyakv.gitbook.io/docs/mega-extension-pack/bool.md).

# Bool

#### **Operations**

* `Toggle()` — Toggles the value of the boolean.
* `Inverted()` — Returns the inverted value of the boolean.

***

#### **Convert To**

* `ToInt()` — Converts a bool to its integer equivalent (true = 1, false = 0).
* `ToSign()` — Converts a bool to its sign equivalent (true = 1, false = -1).
* `ToFloat()` — Converts a bool to its float equivalent (true = 1.0f, false = 0.0f).
* `ToTrueFalse()` — Converts a bool to its string equivalent (true = "True", false = "False").
* `ToYesNo()` — Converts a bool to its string equivalent (true = "Yes", false = "No").
* `ToOnOff()` — Converts a bool to its string equivalent (true = "On", false = "Off").
* `ToCustom<T>(T trueValue, T falseValue)` — Converts a bool to a custom pair of values based on true/false.
