Bool Operators

Bool data type can be compared with the == and != operators. Bool values can be combined with operators not, and, or and xor.

Example: == != not and or xor
main
  bool a = true
  bool b = false
                 
  if a != b                             
    print "a and b are not equal"        // Prints "a and b are not equal"
  if a or b
    print "a or b is true"               // Prints "a or b is true"
  if not b
    print "b's complement is true"       // Prints "b's complement is true"

API Documentation: Class Bool