bool
Boolean. Literals are true and false.
Syntax
Section titled “Syntax”bool name = value;Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”A value of type bool, emitted as boolean.
Luau emit
Section titled “Luau emit”boolean
Description
Section titled “Description”observable bool becomes BoolValue. ! emits not. There is no YES/NO.
Example
Section titled “Example”bool isActive = true;if (!isActive) { return;}Emits:
local isActive: boolean = trueif not isActive then returnend