Touch Develop retirement postponed until June 22, 2019. Sign-in and access to cloud assets to be removed on May 23, 2018.Learn More..


Boolean

You can declare a new boolean local variable by assigning true or false using the := assignment operator.
var t := true
var f := false

not operator

The not operator inverts a boolean value. true becomes false and false becomes true.
  • not true ==> false
  • not false ==> true

and operator

The and operator combines 2 boolean values. The rule of thumb is that if any of the boolean values are false, the result of and is false as well.
  • true and false ==> false
  • false and true ==> false
  • false and false ==> false
  • true and true ==> true

or operator

The or operator combines 2 boolean values. The rule of thumb is that if any of the boolean values are true, the result of true is false as well.
  • true or false ==> true
  • false and true ==> false
  • false and false ==> false
  • true and true ==> true