Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 548 Bytes

booleans.md

File metadata and controls

14 lines (9 loc) · 548 Bytes
title description
Booleans
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. Unlike many other languages, Luau considers both zero and the empty string as true.

Operators

You can formulate complex conditions with relational and logical operators.