Boolean
A boolean value is a true or false value. It can be either true or false.
let ready be true
let dangerous be false
if ready and not dangerous do
print "ready to go!"Definition
A boolean value can be defined using true or false as the value.
let x be trueUsage
Booleans are useful especially when working with conditionals (see Control Flow).
let enabled be true
if enabled do
print "it's enabled!"
otherwise
print "it's disabled!"Comparison operators (is greater than, is less than, is greater or equal to, is less or equal to) between values will
produce boolean values.
let x be 42
print x is greater than 10 # trueAnd logical operators (and, or, not) can be used to
operate on boolean values.
let sweet be true
let sour be false
print sweet and not sour # trueMethods
Returns "true" or "false"
let x be true
let y be call x's to_string
print y # true