Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.



// declares a boolean variable and assigns the value 'true'
boolean firstTime = true;

// ...

if (firstTime == true) {
  // statements
Description Datatype for boolean values true and false. It is common to use boolean values with control statements to determine the flow of a program. Internally the true value is represented by 1 and the false value is represented by 0.
boolean var
boolean var = booleanvalue
var variable name referencing the value
booleanvalue true or false
Usage Application
Updated on July 07, 2011 11:07:56pm PDT

Creative Commons License