Name

false

Description

Reserved word representing the logical value "false". Only variables of type boolean may be assigned the value false.

Examples

  • rect(30, 20, 50, 50);
    boolean b = false;
    if (b == false) {
      line(20, 10, 90, 80);  // This line is drawn
    } else {
      line(20, 80, 90, 10);  // This line is not drawn
    }
    
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.