This commit is contained in:
Joe 2026-02-02 12:08:47 -06:00
parent a9b4f8e83b
commit e6efc04756
8494 changed files with 495610 additions and 0 deletions

View file

@ -0,0 +1,14 @@
---
title: Booleans
description: Data type having a value of either true or false.
---
The **boolean** data type, or `bool`, has a value of either `true` or `false`.
## Conditionals
If a value isn't `false` or `nil`, Luau evaluates it as `true` in [conditional statements](./control-structures.md#if-statements). Unlike many other languages, Luau considers both zero and the empty string as `true`.
## Operators
You can formulate complex conditions with [relational](./operators.md#relational) and [logical](./operators.md#logical) operators.