FANDOM


BooleanEdit

EssentialsEdit

The boolean value is a value that is expressed as true or false.

SamplesEdit

Sample
The following is a sample usage for a boolean.

Source:

local boolean = true
if boolean then
       print('Boolean is true.')
else
       print('Boolean is false.')
end
Output:

Boolean is true


ExtraEdit

The boolean value is much more important than it appears. The Relational Operators and Logical Operators simplify to a boolean value. This means that booleans control the flow the Conditionals, and most Loops.