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.

Name

true

Examples
void setup() 
{
  boolean b = true;
  pinMode(WLED, OUTPUT);
  if (b == true) {
    // turn ON the on-board LED
    digitalWrite(WLED, HIGH);  
  } else {
    digitalWrite(WLED, HIGH);
  }
}

void loop() 
{

}
Description Reserved word representing the logical value "true". Only variables of type boolean may be assigned the value true
Syntax
true
Usage Application
Related false
boolean
Updated on July 07, 2011 11:09:15pm PDT

Creative Commons License